Ejemplo n.º 1
0
 @Override
 public Void visitReturnStatement(ReturnStatement node) {
   Expression expression = node.getExpression();
   if (expression == null) {
     writer.print("return;");
   } else {
     writer.print("return ");
     expression.accept(this);
     writer.print(";");
   }
   return null;
 }
 @Override
 public R visitReturnStatement(ReturnStatement node) {
   node.visitChildren(this);
   return null;
 }