equal
deleted
inserted
replaced
870 if (shouldStop(CompileState.PARSE)) |
870 if (shouldStop(CompileState.PARSE)) |
871 return List.nil(); |
871 return List.nil(); |
872 |
872 |
873 //parse all files |
873 //parse all files |
874 ListBuffer<JCCompilationUnit> trees = lb(); |
874 ListBuffer<JCCompilationUnit> trees = lb(); |
875 for (JavaFileObject fileObject : fileObjects) |
875 Set<JavaFileObject> filesSoFar = new HashSet<JavaFileObject>(); |
876 trees.append(parse(fileObject)); |
876 for (JavaFileObject fileObject : fileObjects) { |
|
877 if (!filesSoFar.contains(fileObject)) { |
|
878 filesSoFar.add(fileObject); |
|
879 trees.append(parse(fileObject)); |
|
880 } |
|
881 } |
877 return trees.toList(); |
882 return trees.toList(); |
878 } |
883 } |
879 |
884 |
880 /** |
885 /** |
881 * Enter the symbols found in a list of parse trees. |
886 * Enter the symbols found in a list of parse trees. |