コード例 #1
0
 /// <summary>
 /// Visits a loop statement.
 /// </summary>
 /// <param name="statement">the statement</param>
 protected internal virtual void visitLoopStatement(LoopStatement statement)
 {
     foreach (SequentialStatement s in statement.Statements)
     {
         visit(s);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates an exit statement for the given loop with a condition.
 /// </summary>
 /// <param name="loop">the loop</param>
 /// <param name="condition">the condition</param>
 public ExitStatement(LoopStatement loop, Expression condition)
 {
     this.loop      = loop;
     this.condition = condition;
 }
コード例 #3
0
 /// <summary>
 /// Creates an exit statement for the given loop.
 /// </summary>
 /// <param name="loop">the loop</param>
 public ExitStatement(LoopStatement loop)
 {
     this.loop = loop;
 }
コード例 #4
0
 /// <summary>
 /// Creates a next statement for the given loop.
 /// </summary>
 /// <param name="loop">the loop</param>
 public NextStatement(LoopStatement loop)
 {
     this.loop = loop;
 }
コード例 #5
0
 public ResolvableImpl(LoopStatement parent)
 {
     this.parent = parent;
 }