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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.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
« 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 6826)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/ResolveLibraryTask.java (working copy)
@@ -13,6 +13,7 @@
*/
package com.google.dart.tools.core.analysis;
+import com.google.dart.compiler.LibrarySource;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.ast.LibraryUnit;
@@ -24,6 +25,7 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
+import java.util.Set;
/**
* Resolve types and references in the specified library
@@ -80,7 +82,10 @@
}
Library lib = context.getCachedLibrary(libFile);
if (lib == null) {
- lib = Library.fromDartUnit(server, libFile, libUnit.getSource(), libUnit.getSelfDartUnit());
+ LibrarySource librarySource = libUnit.getSource();
+ DartUnit unit = libUnit.getSelfDartUnit();
+ Set<String> prefixes = libUnit.getPrefixes();
+ lib = Library.fromDartUnit(server, libFile, librarySource, unit, prefixes);
context.cacheLibrary(lib);
}
lib.cacheLibraryUnit(server, libUnit);
« 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