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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.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
Index: compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java
===================================================================
--- compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java (revision 8158)
+++ compiler/java/com/google/dart/compiler/resolver/LibraryElementImplementation.java (working copy)
@@ -10,7 +10,8 @@
class LibraryElementImplementation extends AbstractNodeElement implements LibraryElement {
- private final Scope scope = new Scope("library", this);
+ private final Scope importScope = new Scope("import", this);
+ private final Scope scope = new Scope("library", this, importScope);
private LibraryUnit libraryUnit;
private MethodElement entryPoint;
@@ -25,6 +26,10 @@
return false;
}
+ @Override
+ public Scope getImportScope() {
+ return importScope;
+ }
@Override
public Scope getScope() {

Powered by Google App Engine
This is Rietveld 408576698