Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ WriteEndElement() [2/3]

void MS.Internal.Xml.Cache.XPathDocumentBuilder.WriteEndElement ( bool allowShortcutTag)
inline

Definition at line 243 of file XPathDocumentBuilder.cs.

244 {
245 if (!_pageParent[_idxParent].HasContentChild)
246 {
247 TextBlockType textType = _textBldr.TextType;
248 if (textType != TextBlockType.Text)
249 {
250 if ((uint)(textType - 5) > 1u)
251 {
253 goto IL_012d;
254 }
255 }
256 else
257 {
258 if (_lineInfo == null)
259 {
260 goto IL_00aa;
261 }
263 {
265 if (num >= 0 && num <= 255)
266 {
268 goto IL_00aa;
269 }
270 }
271 }
274 }
275 else if (_textBldr.HasText)
276 {
278 }
279 goto IL_012d;
280 IL_00aa:
282 goto IL_012d;
283 IL_012d:
284 if (_pageParent[_idxParent].HasNamespaceDecls)
285 {
287 XPathNodeRef xPathNodeRef = _stkNmsp.Pop();
288 _pageNmsp = xPathNodeRef.Page;
289 _idxNmsp = xPathNodeRef.Index;
290 }
294 }
void AddNamespace(XPathNode[] pageElem, int idxElem, XPathNode[] pageNmsp, int idxNmsp)
void SetEmptyValue(bool allowShortcutTag)
Definition XPathNode.cs:185
void SetCollapsedValue(string value)
Definition XPathNode.cs:194
void SetValue(string value)
Definition XPathNode.cs:180
int GetParent(out XPathNode[] pageNode)
Definition XPathNode.cs:121
void SetCollapsedLineInfoOffset(int posOffset)
Definition XPathNode.cs:175

References MS.Internal.Xml.Cache.XPathDocumentBuilder._doc, MS.Internal.Xml.Cache.XPathDocumentBuilder._idxNmsp, MS.Internal.Xml.Cache.XPathDocumentBuilder._idxParent, MS.Internal.Xml.Cache.XPathDocumentBuilder._idxSibling, MS.Internal.Xml.Cache.XPathDocumentBuilder._lineInfo, MS.Internal.Xml.Cache.XPathDocumentBuilder._pageNmsp, MS.Internal.Xml.Cache.XPathDocumentBuilder._pageParent, MS.Internal.Xml.Cache.XPathDocumentBuilder._pageSibling, MS.Internal.Xml.Cache.XPathDocumentBuilder._stkNmsp, MS.Internal.Xml.Cache.XPathDocumentBuilder._textBldr, System.Xml.XPath.XPathDocument.AddNamespace(), MS.Internal.Xml.Cache.XPathDocumentBuilder.CachedTextNode(), System.Xml.Dictionary, MS.Internal.Xml.Cache.XPathNode.GetParent(), MS.Internal.Xml.Cache.XPathDocumentBuilder.TextBlockBuilder.HasText, MS.Internal.Xml.Cache.XPathDocumentBuilder.TextBlockBuilder.LineNumber, MS.Internal.Xml.Cache.XPathNode.LineNumber, MS.Internal.Xml.Cache.XPathNode.LinePosition, MS.Internal.Xml.Cache.XPathDocumentBuilder.TextBlockBuilder.ReadText(), MS.Internal.Xml.Cache.XPathNode.SetCollapsedLineInfoOffset(), MS.Internal.Xml.Cache.XPathNode.SetCollapsedValue(), MS.Internal.Xml.Cache.XPathNode.SetEmptyValue(), MS.Internal.Xml.Cache.XPathNode.SetValue(), and MS.Internal.Xml.Cache.XPathDocumentBuilder.TextBlockBuilder.TextType.