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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java

Issue 10444106: First step toward separating the name space for names within a library from that for imported names (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
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java
===================================================================
--- compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java (revision 8158)
+++ compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java (working copy)
@@ -60,6 +60,7 @@
* @param library a library (that must have an empty scope).
*/
public void fillInLibraryScope(LibraryUnit library, DartCompilerListener listener) {
+ Scope importScope = library.getElement().getImportScope();
Scope scope = library.getElement().getScope();
assert scope.getElements().isEmpty();
@@ -82,6 +83,7 @@
} else {
// Put the elements of the library in the scope.
for (DartUnit unit : lib.getUnits()) {
+ //fillInUnitScope(unit, listener, importScope, false);
fillInUnitScope(unit, listener, scope, false);
}
}
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698