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

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

Issue 10174004: Update AnalysisServer to preserve DartC import prefixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/ParseLibraryFileTask.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java (revision 6826)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ParseLibraryFileTask.java (working copy)
@@ -21,6 +21,8 @@
import java.io.File;
import java.net.URI;
+import java.util.HashSet;
+import java.util.Set;
/**
* Parse a library source file and create the associated {@link Library}
@@ -55,8 +57,9 @@
if (libraryFile.exists()) {
library = context.getCachedLibrary(libraryFile);
if (library == null) {
- DartUnit unit = parse(server, libraryFile, librarySource, libraryFile);
- library = Library.fromDartUnit(server, libraryFile, librarySource, unit);
+ Set<String> prefixes = new HashSet<String>();
+ DartUnit unit = parse(server, libraryFile, librarySource, libraryFile, prefixes);
+ library = Library.fromDartUnit(server, libraryFile, librarySource, unit, prefixes);
context.cacheLibrary(library);
}
}

Powered by Google App Engine
This is Rietveld 408576698