langtools/src/share/classes/com/sun/tools/javac/tree/TreeTranslator.java
changeset 24069 dfb8f11542fc
parent 24066 1dfb66929538
equal deleted inserted replaced
24068:d8a1180faaa9 24069:dfb8f11542fc
   114 /* ***************************************************************************
   114 /* ***************************************************************************
   115  * Visitor methods
   115  * Visitor methods
   116  ****************************************************************************/
   116  ****************************************************************************/
   117 
   117 
   118     public void visitTopLevel(JCCompilationUnit tree) {
   118     public void visitTopLevel(JCCompilationUnit tree) {
       
   119         tree.defs = translate(tree.defs);
       
   120         result = tree;
       
   121     }
       
   122 
       
   123     public void visitPackageDef(JCPackageDecl tree) {
       
   124         tree.annotations = translate(tree.annotations);
   119         tree.pid = translate(tree.pid);
   125         tree.pid = translate(tree.pid);
   120         tree.defs = translate(tree.defs);
       
   121         result = tree;
   126         result = tree;
   122     }
   127     }
   123 
   128 
   124     public void visitImport(JCImport tree) {
   129     public void visitImport(JCImport tree) {
   125         tree.qualid = translate(tree.qualid);
   130         tree.qualid = translate(tree.qualid);