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

◆ ParseSubExpr()

Node System.Xml.Xsl.XPath.XPathParser< Node >.ParseSubExpr ( int callerPrec)
inlineprivate

Definition at line 266 of file XPathParser.cs.

267 {
269 {
271 }
272 Node val;
273 if (_scanner.Kind == LexKind.Minus)
274 {
278 val = _builder.Operator(xPathOperator, ParseSubExpr(callerPrec2), default(Node));
279 }
280 else
281 {
282 val = ParseUnionExpr();
283 }
284 while (true)
285 {
286 XPathOperator xPathOperator = (XPathOperator)((_scanner.Kind <= LexKind.Union) ? _scanner.Kind : LexKind.Unknown);
288 if (num <= callerPrec)
289 {
290 break;
291 }
293 val = _builder.Operator(xPathOperator, val, ParseSubExpr(num));
294 }
296 return val;
297 }
static string Xslt_InputTooComplex
Definition SR.cs:1862
Definition SR.cs:7
static readonly int[] s_XPathOperatorPrecedence
IXPathBuilder< Node > _builder
Node ParseSubExpr(int callerPrec)
XPathCompileException CreateException(string resId, params string[] args)

References System.Xml.Xsl.XPath.XPathParser< Node >._builder, System.Xml.Xsl.XPath.XPathParser< Node >._parseSubExprDepth, System.Xml.Xsl.XPath.XPathParser< Node >._scanner, System.Xml.Xsl.XPath.XPathScanner.CreateException(), System.Xml.Dictionary, System.Xml.Xsl.XPath.XPathScanner.Kind, System.LocalAppContextSwitches.LimitXPathComplexity, System.Xml.Xsl.XPath.XPathScanner.NextLex(), System.Xml.Xsl.Node, System.Xml.Xsl.XPath.XPathParser< Node >.ParseSubExpr(), System.Xml.Xsl.XPath.XPathParser< Node >.ParseUnionExpr(), System.Xml.Xsl.XPath.XPathParser< Node >.s_XPathOperatorPrecedence, and System.SR.Xslt_InputTooComplex.

Referenced by System.Xml.Xsl.XPath.XPathParser< Node >.ParseExpr(), and System.Xml.Xsl.XPath.XPathParser< Node >.ParseSubExpr().