equal
deleted
inserted
replaced
1012 |
1012 |
1013 /** |
1013 /** |
1014 * Parses a list of files. |
1014 * Parses a list of files. |
1015 */ |
1015 */ |
1016 public List<JCCompilationUnit> parseFiles(Iterable<JavaFileObject> fileObjects) { |
1016 public List<JCCompilationUnit> parseFiles(Iterable<JavaFileObject> fileObjects) { |
1017 if (shouldStop(CompileState.PARSE)) |
1017 return parseFiles(fileObjects, false); |
|
1018 } |
|
1019 |
|
1020 public List<JCCompilationUnit> parseFiles(Iterable<JavaFileObject> fileObjects, boolean force) { |
|
1021 if (!force && shouldStop(CompileState.PARSE)) |
1018 return List.nil(); |
1022 return List.nil(); |
1019 |
1023 |
1020 //parse all files |
1024 //parse all files |
1021 ListBuffer<JCCompilationUnit> trees = new ListBuffer<>(); |
1025 ListBuffer<JCCompilationUnit> trees = new ListBuffer<>(); |
1022 Set<JavaFileObject> filesSoFar = new HashSet<>(); |
1026 Set<JavaFileObject> filesSoFar = new HashSet<>(); |