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

◆ ParseRelationalExpr()

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

Definition at line 185 of file XPathParser.cs.

186 {
187 AstNode astNode = ParseAdditiveExpr(qyInput);
188 while (true)
189 {
190 Operator.Op op = ((_scanner.Kind == XPathScanner.LexKind.Lt) ? Operator.Op.LT : ((_scanner.Kind == XPathScanner.LexKind.Le) ? Operator.Op.LE : ((_scanner.Kind == XPathScanner.LexKind.Gt) ? Operator.Op.GT : ((_scanner.Kind == XPathScanner.LexKind.Ge) ? Operator.Op.GE : Operator.Op.INVALID))));
191 if (op == Operator.Op.INVALID)
192 {
193 break;
194 }
195 NextLex();
196 astNode = new Operator(op, astNode, ParseAdditiveExpr(qyInput));
197 }
198 return astNode;
199 }
AstNode ParseAdditiveExpr(AstNode qyInput)

References MS.Internal.Xml.XPath.XPathParser.NextLex(), and MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr().

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