Beispiel #1
0
 private static int _Compare(OperatorExpression a, OperatorExpression b)
 {
     return(_Precedence(a.Operator).CompareTo(_Precedence(b.Operator)));
 }
Beispiel #2
0
 private static void _GetRequiredChildrenFromOutput(JsonPathExpressionContext context, OperatorExpression expr)
 {
     if (expr.IsBinary)
     {
         var second = context.Output.Pop();
         var first  = context.Output.Pop();
         expr.Children.Add(first);
         expr.Children.Add(second);
     }
     else             // unary
     {
         expr.Children.Add(context.Output.Pop());
     }
 }