CreateWithContext() public static method

public static CreateWithContext ( QueryContext context ) : PlusAssignmentOperator
context QueryContext
return PlusAssignmentOperator
示例#1
0
        public override Value Handle(Expression value, Dictionary <string, Value> symbols)
        {
            var a = PlusAssignmentOperator.CreateWithContext(Query);

            a.Handle(value, new NumberExpression(ScalarValue.One), symbols);
            return(value.Interpret(symbols));
        }
        public override Value Handle(Expression expression, IDictionary <String, Value> symbols)
        {
            var a      = PlusAssignmentOperator.CreateWithContext(Query);
            var origin = expression.Interpret(symbols);

            a.Handle(expression, new NumberExpression(ScalarValue.One), symbols);
            return(origin);
        }