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

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

Issue 10832321: Issue 4048. Support for revised library/import syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/Scope.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Scope.java b/compiler/java/com/google/dart/compiler/resolver/Scope.java
index 344ca256fdb24e66b817265e4fe20cefdb0de625..916d4b80de9f6dd00eefcd15f929a4dfdc4d295b 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Scope.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Scope.java
@@ -27,6 +27,8 @@ public class Scope {
private final String name;
private List<LabelElement> labels;
private LibraryElement library;
+ private boolean stateProgress;
+ private boolean stateReady;
@VisibleForTesting
public Scope(String name, LibraryElement library, Scope parent) {
@@ -98,6 +100,22 @@ public class Scope {
}
return false;
}
+
+ public void markStateProgress() {
+ this.stateProgress = true;
+ }
+
+ public boolean isStateProgress() {
+ return stateProgress;
+ }
+
+ public void markStateReady() {
+ this.stateReady = true;
+ }
+
+ public boolean isStateReady() {
+ return stateReady;
+ }
public Map<String, Element> getElements() {
return elements;

Powered by Google App Engine
This is Rietveld 408576698