Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HasLineInfo()

bool IXmlLineInfo. System.Xml.Linq.XNodeReader.HasLineInfo ( )
inlineprivate

Implements System.Xml.IXmlLineInfo.

Definition at line 954 of file XNodeReader.cs.

955 {
956 if (IsEndElement)
957 {
958 if (_source is XElement xElement)
959 {
960 return xElement.Annotation<LineInfoEndElementAnnotation>() != null;
961 }
962 }
963 else if (_source is IXmlLineInfo xmlLineInfo)
964 {
965 return xmlLineInfo.HasLineInfo();
966 }
967 return false;
968 }

References System.Xml.Linq.XNodeReader._source, System.Xml.Dictionary, and System.Xml.Linq.XNodeReader.IsEndElement.