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

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

Issue 10391092: Update analysis server and indexer (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryTask.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryTask.java (revision 7590)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryTask.java (working copy)
@@ -14,6 +14,7 @@
package com.google.dart.tools.core.analysis;
import java.io.File;
+import java.util.Map.Entry;
/**
* Parse the library file and all files referenced in #source directives
@@ -48,9 +49,11 @@
// Parse the files sourced by the library
- for (File file : library.getSourceFiles()) {
+ for (Entry<String, File> entry : library.getRelativeSourcePathsAndFiles()) {
+ String relPath = entry.getKey();
+ File file = entry.getValue();
if (context.getUnresolvedUnit(file) == null && file.exists()) {
- server.queueSubTask(new ParseFileTask(server, context, libraryFile, file));
+ server.queueSubTask(new ParseFileTask(server, context, libraryFile, relPath, file));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698