Example #1
0
 public override void Visit(ForStatement node)
 {
   VisitNode(node.Initialization);
   VisitNode(node.Condition);
   VisitNode(node.Increment);
   VisitNode(node.Body);
   Visit((LoopStatement)node);
 }
Example #2
0
 public override void Visit(ForStatement node) { Visit((LoopStatement)node); }
Example #3
0
 public override void Visit(ForStatement node)
 {
   Loop(node, node.Initialization, node.Condition, node.Increment, node.Body, false);
 }
Example #4
0
 public ForStatement MakeForStatement(Scope scope, IStatement initialization, IExpression condition, IExpression increment, IStatement body)
 {
   scope.HasLoop = true;
   ToBoolean booleanCondition = null;
   if (condition != null)
     booleanCondition = MakeToBoolean((Expression)condition);
   var n = new ForStatement((Statement)initialization, booleanCondition, (Expression)increment, (Statement)body);
   return n;
 }
Example #5
0
 public override void Visit(ForStatement node) { VisitNode(node.Body); }