langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
changeset 42827 36468b5fa7f4
parent 41254 08f8dbf7741e
child 42828 cce89649f958
equal deleted inserted replaced
42826:563b42fc70ba 42827:36468b5fa7f4
   335 
   335 
   336     /**
   336     /**
   337      * SourceCompleter that delegates to the readSourceFile method of this class.
   337      * SourceCompleter that delegates to the readSourceFile method of this class.
   338      */
   338      */
   339     protected final Symbol.Completer sourceCompleter =
   339     protected final Symbol.Completer sourceCompleter =
   340             new Symbol.Completer() {
   340             sym -> readSourceFile((ClassSymbol) sym);
   341                 @Override
       
   342                 public void complete(Symbol sym) throws CompletionFailure {
       
   343                     readSourceFile((ClassSymbol) sym);
       
   344                 }
       
   345             };
       
   346 
   341 
   347     protected final ModuleFinder.ModuleInfoSourceFileCompleter moduleInfoSourceFileCompleter =
   342     protected final ModuleFinder.ModuleInfoSourceFileCompleter moduleInfoSourceFileCompleter =
   348             fo -> (ModuleSymbol) readSourceFile(parseImplicitFile(fo), null, tl -> {
   343             fo -> (ModuleSymbol) readSourceFile(parseImplicitFile(fo), null, tl -> {
   349                 return tl.defs.nonEmpty() && tl.defs.head.hasTag(Tag.MODULEDEF) ?
   344                 return tl.defs.nonEmpty() && tl.defs.head.hasTag(Tag.MODULEDEF) ?
   350                         ((JCModuleDecl) tl.defs.head).sym.module_info :
   345                         ((JCModuleDecl) tl.defs.head).sym.module_info :