Example #1
0
 /// <summary>
 /// Evaluate
 /// </summary>
 /// <returns></returns>
 public object VisitNamedParameter(NamedParameterExpr expr)
 {
     var result = expr.Value == null ? null : expr.Value.Evaluate(this);
     return result;
 }
Example #2
0
 /// <summary>
 /// Visits the function call expression tree
 /// </summary>
 /// <param name="exp"></param>
 public object VisitNamedParameter(NamedParameterExpr exp)
 {
     return null;
 }
Example #3
0
 /// <summary>
 /// Creates a unary expression with symbol scope, context, script refernce set.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="token"></param>
 /// <returns></returns>
 public static Expr NamedParam(string paramName, Expr val, TokenData token)
 {
     var exp = new NamedParameterExpr();
     exp.Name = paramName;
     exp.Value = val;
     SetupContext(exp, token);
     return exp;
 }