Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2105)

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.java

Issue 9860034: AnalysisServer fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.java (revision 5855)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.java (working copy)
@@ -58,12 +58,12 @@
Library lib = todo.get(index);
LibraryUnit libUnit = lib.getLibraryUnit();
if (libUnit != null) {
- resolvedLibs.put(lib.getFile().toURI(), libUnit);
- continue;
+ resolvedLibs.put(libUnit.getSource().getUri(), libUnit);
+ } else {
+ for (Entry<File, DartUnit> entry : lib.getCachedUnits().entrySet()) {
+ parsedUnits.put(entry.getKey().toURI(), entry.getValue());
+ }
}
- for (Entry<File, DartUnit> entry : lib.getCachedUnits().entrySet()) {
- parsedUnits.put(entry.getKey().toURI(), entry.getValue());
- }
for (File file : lib.getImportedFiles()) {
Library importedLib = context.getCachedLibrary(file);
if (importedLib != null && !todo.contains(importedLib)) {
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698