Exemplo n.º 1
0
 public virtual Statement visit(TryStatement statement)
 {
     writeIndent();
     write("try");
     statement.tryBlock.visitStatement(this);
     if (statement.catchBlock != null)
     {
         writeIndent();
         write("catch (");
         statement.catchIdentifier.visitExpression(this);
         write(")");
         statement.catchBlock.visitStatement(this);
     }
     if (statement.finallyBlock != null)
     {
         writeIndent();
         write("finally ");
         statement.finallyBlock.visitStatement(this);
     }
     return(statement);
 }
Exemplo n.º 2
0
        public virtual Statement visit(TryStatement statement)
        {
            write("try (line = " + statement.getLineNumber() + ")");

            return(statement);
        }