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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseFileTask.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/ParseFileTask.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseFileTask.java (revision 7590)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseFileTask.java (working copy)
@@ -27,12 +27,15 @@
private final AnalysisServer server;
private final Context context;
private final File libraryFile;
+ private final String relPath;
private final File dartFile;
- ParseFileTask(AnalysisServer server, Context context, File libraryFile, File dartFile) {
+ ParseFileTask(AnalysisServer server, Context context, File libraryFile, String relPath,
+ File dartFile) {
this.server = server;
this.context = context;
this.libraryFile = libraryFile;
+ this.relPath = relPath;
this.dartFile = dartFile;
}
@@ -66,7 +69,7 @@
return;
}
Set<String> prefixes = library.getPrefixes();
- unit = parse(server, libraryFile, library.getLibrarySource(), dartFile, prefixes);
+ unit = parse(server, libraryFile, library.getLibrarySource(), relPath, prefixes);
context.cacheUnresolvedUnit(dartFile, unit);
}
}

Powered by Google App Engine
This is Rietveld 408576698