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

◆ ParseLocationPath()

AstNode MS.Internal.Xml.XPath.XPathParser.ParseLocationPath ( AstNode qyInput)
inlineprivate

Definition at line 305 of file XPathParser.cs.

306 {
307 if (_scanner.Kind == XPathScanner.LexKind.Slash)
308 {
309 NextLex();
310 AstNode astNode = new Root();
311 if (IsStep(_scanner.Kind))
312 {
314 }
315 return astNode;
316 }
317 if (_scanner.Kind == XPathScanner.LexKind.SlashSlash)
318 {
319 NextLex();
320 return ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, new Root()));
321 }
322 return ParseRelativeLocationPath(qyInput);
323 }
static bool IsStep(XPathScanner.LexKind lexKind)
AstNode ParseRelativeLocationPath(AstNode qyInput)

References MS.Internal.Xml.XPath.XPathParser._scanner, MS.Internal.Xml.XPath.XPathParser.IsStep(), MS.Internal.Xml.XPath.XPathScanner.Kind, MS.Internal.Xml.XPath.XPathParser.NextLex(), MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(), and System.Xml.XPath.Root.

Referenced by MS.Internal.Xml.XPath.XPathParser.ParsePathExpr().