langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
equal
deleted
inserted
replaced
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 : |