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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java
index fe7091f1386aa1b047a7239440fb414b695d02b0..8854aaebefba4fbd6f2e0d9b97e07e404a8ef82e 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/impl/InMemoryIndex.java
@@ -255,10 +255,12 @@ public class InMemoryIndex implements Index {
Resource indexerResource;
if (SystemLibraryManager.isDartUri(unitUri)) {
indexerResource = new Resource(ResourceFactory.composeResourceId(
- librarySource.getUri().toString(), unitUri.toString()));
+ librarySource.getUri().toString(),
+ unitUri.toString()));
} else if (SystemLibraryManager.isPackageUri(unitUri)) {
indexerResource = new Resource(ResourceFactory.composeResourceId(
- libraryFile.toURI().toString(), sourceFile.toURI().toString()));
+ libraryFile.toURI().toString(),
+ sourceFile.toURI().toString()));
} else {
indexerResource = ResourceFactory.getResource(compilationUnit);
}
@@ -497,7 +499,7 @@ public class InMemoryIndex implements Index {
long endTime = System.currentTimeMillis();
initIndexingTime += endTime - startTime;
}
- for (LibraryUnit importedLibrary : libraryUnit.getImports()) {
+ for (LibraryUnit importedLibrary : libraryUnit.getImportedLibraries()) {
indexBundledLibrary(importedLibrary, initializedLibraries);
}
}
@@ -559,7 +561,7 @@ public class InMemoryIndex implements Index {
long endTime = System.currentTimeMillis();
initIndexingTime += endTime - startTime;
}
- for (LibraryUnit importedLibrary : libraryUnit.getImports()) {
+ for (LibraryUnit importedLibrary : libraryUnit.getImportedLibraries()) {
// library.getImportedLibrary(importedLibrary.getSource().getUri());
indexUserLibrary(importedLibrary, initializedLibraries);
}

Powered by Google App Engine
This is Rietveld 408576698