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

◆ Parse()

Node System.Xml.Xsl.XPath.XPathParser< Node >.Parse ( XPathScanner scanner,
IXPathBuilder< Node > builder,
LexKind endLex )
inline

Definition at line 24 of file XPathParser.cs.

25 {
26 Node result = default(Node);
30 try
31 {
32 builder.StartBuild();
33 result = ParseExpr();
34 scanner.CheckToken(endLex);
35 }
36 catch (XPathCompileException ex)
37 {
38 if (ex.queryString == null)
39 {
40 ex.queryString = scanner.Source;
41 PopPosInfo(out ex.startChar, out ex.endChar);
42 }
43 throw;
44 }
45 finally
46 {
47 result = builder.EndBuild(result);
48 }
49 return result;
50 }
IXPathBuilder< Node > _builder
readonly Stack< int > _posInfo

References System.Xml.Xsl.XPath.XPathParser< Node >._builder, System.Xml.Xsl.XPath.XPathParser< Node >._posInfo, System.Xml.Xsl.XPath.XPathParser< Node >._scanner, System.Collections.Generic.Stack< T >.Clear(), System.Xml.Dictionary, System.Xml.Xsl.Node, System.Xml.Xsl.XPath.XPathParser< Node >.ParseExpr(), and System.Xml.Xsl.XPath.XPathParser< Node >.PopPosInfo().

Referenced by System.Xml.Xsl.Xslt.XslAstAnalyzer.XPathAnalyzer.Analyze(), System.Xml.Xsl.Xslt.XslAstAnalyzer.XPathAnalyzer.AnalyzeAvt(), System.Xml.Xsl.Xslt.QilGenerator.CompileKeyUse(), System.Xml.Xsl.Xslt.QilGenerator.CompileXPathExpression(), System.Xml.Xsl.Xslt.QilGenerator.CompileXPathExpressionWithinAvt(), and System.Xml.Xsl.Xslt.XPathPatternParser.ParsePredicate().