test/langtools/tools/javac/api/ast/CodeBuilder.java
branchjlahoda-tree-builder
changeset 57300 c79e191854e4
parent 57297 ad0be596956b
equal deleted inserted replaced
57298:72d5f7163f12 57300:c79e191854e4
   185             public Void visitIdentifier(IdentifierTree node, Void p) {
   185             public Void visitIdentifier(IdentifierTree node, Void p) {
   186                 result.append(currentBuilder() + ".ident(\"" + node.getName() + "\")");
   186                 result.append(currentBuilder() + ".ident(\"" + node.getName() + "\")");
   187                 return null;
   187                 return null;
   188             }
   188             }
   189 
   189 
   190 //            @Override
       
   191 //            public Void visitBlock(BlockTree node, Void p) {
       
   192 ////                for (StatementTree st : node.getStatements()) {
       
   193 ////                    result.append(curr)
       
   194 ////                }
       
   195 //                return super.visitBlock(node, p);
       
   196 //            }
       
   197 
       
   198             @Override
   190             @Override
   199             public Void visitIf(IfTree node, Void p) {
   191             public Void visitIf(IfTree node, Void p) {
   200                 result.append(currentBuilder() + "._if(");
   192                 result.append(currentBuilder() + "._if(");
   201                 doScan("E", node.getCondition());
   193                 doScan("E", node.getCondition());
   202                 result.append(", ");
   194                 result.append(", ");