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

◆ ParseLocationPath()

Node System.Xml.Xsl.XPath.XPathParser< Node >.ParseLocationPath ( )
inlineprivate

Definition at line 61 of file XPathParser.cs.

62 {
63 if (_scanner.Kind == LexKind.Slash)
64 {
66 Node val = _builder.Axis(XPathAxis.Root, XPathNodeType.All, null, null);
67 if (IsStep(_scanner.Kind))
68 {
69 val = _builder.JoinStep(val, ParseRelativeLocationPath());
70 }
71 return val;
72 }
73 if (_scanner.Kind == LexKind.SlashSlash)
74 {
76 return _builder.JoinStep(_builder.Axis(XPathAxis.Root, XPathNodeType.All, null, null), _builder.JoinStep(_builder.Axis(XPathAxis.DescendantOrSelf, XPathNodeType.All, null, null), ParseRelativeLocationPath()));
77 }
79 }
IXPathBuilder< Node > _builder
static bool IsStep(LexKind lexKind)

References System.Xml.Xsl.XPath.XPathParser< Node >._builder, System.Xml.Xsl.XPath.XPathParser< Node >._scanner, System.Xml.Xsl.XPath.XPathParser< Node >.IsStep(), System.Xml.Xsl.XPath.XPathScanner.Kind, System.Xml.Xsl.XPath.XPathScanner.NextLex(), System.Xml.Xsl.Node, and System.Xml.Xsl.XPath.XPathParser< Node >.ParseRelativeLocationPath().

Referenced by System.Xml.Xsl.XPath.XPathParser< Node >.ParsePathExpr().