Exemplo n.º 1
0
 public CodePreTestLoopStatement While(
     CodeExpression exp,
     Action generateBody)
 {
     var w = new CodePreTestLoopStatement
     {
         Test = exp,
     };
     var oldScope = Scope;
     Scope = w.Body;
     generateBody();
     Scope = oldScope;
     Scope.Add(w);
     return w;
 }
Exemplo n.º 2
0
 public int VisitPreTestLoop(CodePreTestLoopStatement l)
 {
     Analyze(this.path, l.Body);
     return(0);
 }