langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 40313 a85f92c9a8ab
parent 39920 4923274643f2
child 40504 0a01f6710c84
equal deleted inserted replaced
40312:4c7bf578577e 40313:a85f92c9a8ab
  4280                 attribModule(env.tree.pos(), ((JCModuleDecl)env.tree).sym);
  4280                 attribModule(env.tree.pos(), ((JCModuleDecl)env.tree).sym);
  4281                 break;
  4281                 break;
  4282             case TOPLEVEL:
  4282             case TOPLEVEL:
  4283                 attribTopLevel(env);
  4283                 attribTopLevel(env);
  4284                 break;
  4284                 break;
       
  4285             case PACKAGEDEF:
       
  4286                 attribPackage(env.tree.pos(), ((JCPackageDecl) env.tree).packge);
       
  4287                 break;
  4285             default:
  4288             default:
  4286                 attribClass(env.tree.pos(), env.enclClass.sym);
  4289                 attribClass(env.tree.pos(), env.enclClass.sym);
  4287         }
  4290         }
  4288     }
  4291     }
  4289 
  4292 
  4296         try {
  4299         try {
  4297             annotate.flush();
  4300             annotate.flush();
  4298         } catch (CompletionFailure ex) {
  4301         } catch (CompletionFailure ex) {
  4299             chk.completionError(toplevel.pos(), ex);
  4302             chk.completionError(toplevel.pos(), ex);
  4300         }
  4303         }
       
  4304     }
       
  4305 
       
  4306     public void attribPackage(DiagnosticPosition pos, PackageSymbol p) {
       
  4307         try {
       
  4308             annotate.flush();
       
  4309             attribPackage(p);
       
  4310         } catch (CompletionFailure ex) {
       
  4311             chk.completionError(pos, ex);
       
  4312         }
       
  4313     }
       
  4314 
       
  4315     void attribPackage(PackageSymbol p) {
       
  4316         Env<AttrContext> env = typeEnvs.get(p);
       
  4317         chk.checkDeprecatedAnnotation(((JCPackageDecl) env.tree).pid.pos(), p);
  4301     }
  4318     }
  4302 
  4319 
  4303     public void attribModule(DiagnosticPosition pos, ModuleSymbol m) {
  4320     public void attribModule(DiagnosticPosition pos, ModuleSymbol m) {
  4304         try {
  4321         try {
  4305             annotate.flush();
  4322             annotate.flush();