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

◆ ParseUnaryExpr()

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

Definition at line 233 of file XPathParser.cs.

234 {
235 bool flag = false;
236 while (_scanner.Kind == XPathScanner.LexKind.Minus)
237 {
238 NextLex();
239 flag = !flag;
240 }
241 if (flag)
242 {
243 return new Operator(Operator.Op.MUL, ParseUnionExpr(qyInput), new Operand(-1.0));
244 }
245 return ParseUnionExpr(qyInput);
246 }
AstNode ParseUnionExpr(AstNode qyInput)

References MS.Internal.Xml.XPath.XPathParser._scanner, MS.Internal.Xml.XPath.XPathScanner.Kind, MS.Internal.Xml.XPath.XPathParser.NextLex(), and MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr().

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