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

◆ ParseLocationPathPattern()

QilNode System.Xml.Xsl.Xslt.XPathPatternParser.ParseLocationPathPattern ( )
inlineprivate

Definition at line 52 of file XPathPatternParser.cs.

53 {
54 switch (_scanner.Kind)
55 {
56 case LexKind.Slash:
57 {
59 QilNode qilNode = _ptrnBuilder.Axis(XPathAxis.Root, XPathNodeType.All, null, null);
61 {
63 }
64 return qilNode;
65 }
66 case LexKind.SlashSlash:
69 case LexKind.Name:
70 if (_scanner.CanBeFunction && _scanner.Prefix.Length == 0 && (_scanner.Name == "id" || _scanner.Name == "key"))
71 {
73 switch (_scanner.Kind)
74 {
75 case LexKind.Slash:
78 break;
79 case LexKind.SlashSlash:
82 break;
83 }
84 return qilNode;
85 }
86 break;
87 }
89 }
Node Axis(XPathAxis xpathAxis, XPathNodeType nodeType, string prefix, string name)
Node JoinStep(Node left, Node right)

References System.Xml.Xsl.Xslt.XPathPatternParser._ptrnBuilder, System.Xml.Xsl.Xslt.XPathPatternParser._scanner, System.Xml.Xsl.XPath.IXPathBuilder< Node >.Axis(), System.Xml.Xsl.XPath.XPathScanner.CanBeFunction, System.Xml.Dictionary, System.Xml.Xsl.XPath.IXPathBuilder< Node >.JoinStep(), System.Xml.Xsl.XPath.XPathScanner.Kind, System.Xml.Xsl.XPath.XPathScanner.Name, System.Xml.Xsl.XPath.XPathScanner.NextLex(), System.Xml.Xsl.Xslt.XPathPatternParser.ParseIdKeyPattern(), System.Xml.Xsl.Xslt.XPathPatternParser.ParseRelativePathPattern(), and System.Xml.Xsl.XPath.XPathScanner.Prefix.

Referenced by System.Xml.Xsl.Xslt.XPathPatternParser.ParsePattern().