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

Unified Diff: compiler/java/com/google/dart/compiler/DeltaAnalyzer.java

Issue 10536180: Issue 3530. Import elements into separate import namespace (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java b/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
index 38c42eb7ba826aa596598dcfda78f653d7442ac3..cce323ee5167c33887398586471038218a35d347 100644
--- a/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/DeltaAnalyzer.java
@@ -13,7 +13,6 @@ import com.google.dart.compiler.ast.LibraryUnit;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.parser.DartParser;
import com.google.dart.compiler.parser.DartScannerParserContext;
-import com.google.dart.compiler.resolver.TopLevelElementBuilder;
import com.google.dart.compiler.resolver.CoreTypeProvider;
import com.google.dart.compiler.resolver.CoreTypeProviderImplementation;
import com.google.dart.compiler.resolver.Element;
@@ -22,6 +21,7 @@ import com.google.dart.compiler.resolver.MemberBuilder;
import com.google.dart.compiler.resolver.Resolver;
import com.google.dart.compiler.resolver.Scope;
import com.google.dart.compiler.resolver.SupertypeResolver;
+import com.google.dart.compiler.resolver.TopLevelElementBuilder;
import com.google.dart.compiler.type.TypeAnalyzer;
import java.io.IOException;
@@ -82,10 +82,9 @@ class DeltaAnalyzer {
for (LibraryNode path : enclosingLibrary.getLibraryUnit().getImportPaths()) {
libraryUnit.addImportPath(path);
}
- for (LibraryUnit importUnit : enclosingLibrary.getLibraryUnit().getImports()) {
+ for (LibraryUnit importUnit : enclosingLibrary.getLibraryUnit().getImportedLibraries()) {
libraryUnit.addImport(importUnit, importUnit.getEntryNode());
}
- libraryUnit.initializePrefixes(enclosingLibrary.getLibraryUnit());
libraryUnit.putUnit(unit);
// Create top-level elements for the new unit.

Powered by Google App Engine
This is Rietveld 408576698