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

◆ ParsePathExpr()

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

Definition at line 262 of file XPathParser.cs.

263 {
264 AstNode astNode;
265 if (IsPrimaryExpr)
266 {
267 astNode = ParseFilterExpr(qyInput);
268 if (_scanner.Kind == XPathScanner.LexKind.Slash)
269 {
270 NextLex();
272 }
273 else if (_scanner.Kind == XPathScanner.LexKind.SlashSlash)
274 {
275 NextLex();
276 astNode = ParseRelativeLocationPath(new Axis(Axis.AxisType.DescendantOrSelf, astNode));
277 }
278 }
279 else
280 {
282 }
283 return astNode;
284 }
AstNode ParseFilterExpr(AstNode qyInput)
AstNode ParseLocationPath(AstNode qyInput)
AstNode ParseRelativeLocationPath(AstNode qyInput)

References MS.Internal.Xml.XPath.XPathParser._scanner, MS.Internal.Xml.XPath.XPathParser.IsPrimaryExpr, MS.Internal.Xml.XPath.XPathScanner.Kind, MS.Internal.Xml.XPath.XPathParser.NextLex(), MS.Internal.Xml.XPath.XPathParser.ParseFilterExpr(), MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(), and MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath().

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