@Override
 public void visitBlock(Block block) {
   pushBlockTable(block);
   definedInBlock(block.getReferenceTable().ownedSymbols(), block);
   for (GoloStatement statement : block.getStatements()) {
     statement.accept(this);
   }
   dropBlockTable();
 }
示例#2
0
 @Override
 public void visitBlock(Block block) {
   incr();
   space();
   System.out.println("Block");
   incr();
   for (LocalReference ref : block.getReferenceTable().references()) {
     space();
     System.out.println(" - " + ref);
   }
   decr();
   for (GoloStatement statement : block.getStatements()) {
     statement.accept(this);
   }
   decr();
 }