Beispiel #1
0
 /// <summary>
 /// Executes multiple assignments.
 /// </summary>
 /// <returns></returns>
 public object VisitAssignMulti(AssignMultiExpr expr)
 {
     foreach (var assigment in expr.Assignments)
     {
         VisitAssign(assigment);
     }
     return LObjects.Null;
 }
Beispiel #2
0
 public static Expr AssignMulti(bool declare, List<AssignExpr> exprs, TokenData token)
 {
     var exp = new AssignMultiExpr();
     exp.Assignments = exprs;
     SetupContext(exp, token);
     return exp;
 }
Beispiel #3
0
 /// <summary>
 /// Visits the var statement tree.
 /// </summary>
 /// <param name="assignExpr"></param>
 public object VisitAssignMulti(AssignMultiExpr assignExpr)
 {
     _callBackOnNodeStart(assignExpr);
     foreach (var decl in assignExpr.Assignments)
     {
         VisitAssign(decl);
     }
     return null;
 }