Пример #1
0
 public void traverse(ASTVisitor visitor, BlockScope blockScope) {
   if (visitor.visit(this, blockScope)) {
     this.type.traverse(visitor, blockScope);
     this.expression.traverse(visitor, blockScope);
   }
   visitor.endVisit(this, blockScope);
 }
Пример #2
0
 public void traverse(ASTVisitor visitor, BlockScope scope) {
   if (visitor.visit(this, scope)) {
     lhs.traverse(visitor, scope);
     expression.traverse(visitor, scope);
   }
   visitor.endVisit(this, scope);
 }