public object Evaluate(ExecutionState state, Token contextToken) { if (expr is IArgumentListEvaluatorExpression) { return(((IArgumentListEvaluatorExpression)expr).Evaluate(token, args, state)); } object o = expr.Evaluate(state, token); return(SystemTypeEvaluator.EvaluateArguments(state, o, args, token)); }
public object Evaluate(Token contextToken, List <ExpressionArgument> args, ExecutionState state) { object o = state.HasVariable(variableToken.Value) ? state.GetVariable(variableToken.Value) : null; if (o is IArgumentListEvaluatorExpression) { return(((IArgumentListEvaluatorExpression)o).Evaluate(contextToken, args, state)); } else { return(SystemTypeEvaluator.EvaluateArguments(state, o, args, contextToken)); } }