src/share/classes/com/sun/tools/javac/tree/Pretty.java

changeset 1142
c896d95e7469
parent 1127
ca49d50318dc
child 1143
ec59a2ce9114
equal deleted inserted replaced
1140:07599bd780ca 1142:c896d95e7469
900 if (tree.elemtype != null) print("[]"); 900 if (tree.elemtype != null) print("[]");
901 print("{"); 901 print("{");
902 printExprs(tree.elems); 902 printExprs(tree.elems);
903 print("}"); 903 print("}");
904 } 904 }
905 } catch (IOException e) {
906 throw new UncheckedIOException(e);
907 }
908 }
909
910 public void visitLambda(JCLambda tree) {
911 try {
912 print("(");
913 printExprs(tree.params);
914 print(")->");
915 printExpr(tree.body);
905 } catch (IOException e) { 916 } catch (IOException e) {
906 throw new UncheckedIOException(e); 917 throw new UncheckedIOException(e);
907 } 918 }
908 } 919 }
909 920

mercurial