This is the class for the -= operator.
Inheritance: AssignmentPrefixOperator
Esempio n. 1
0
        public override Value Handle(Expression value, IDictionary <String, Value> symbols)
        {
            var a = MinusAssignmentOperator.CreateWithContext(Query);

            a.Handle(value, new NumberExpression(ScalarValue.One), symbols);
            return(value.Interpret(symbols));
        }
Esempio n. 2
0
        public static MinusAssignmentOperator CreateWithContext(QueryContext context)
        {
            var a = new MinusAssignmentOperator();

            a.Query = context;
            return(a);
        }
Esempio n. 3
0
        public override Value Handle(Expression expression, Dictionary <string, Value> symbols)
        {
            var a      = MinusAssignmentOperator.CreateWithContext(Query);
            var origin = expression.Interpret(symbols);

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