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

Unified Diff: dart/lib/compiler/implementation/scanner/class_element_parser.dart

Issue 10823311: Clean up state handling in ClassElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased 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
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/class_element_parser.dart
diff --git a/dart/lib/compiler/implementation/scanner/class_element_parser.dart b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
index 4b9045c4b0b4632c73ade4086debb531ee423ac6..149714e1fdfb2417ae595db1de4a80840cbec0f5 100644
--- a/dart/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -18,7 +18,19 @@ class PartialClassElement extends ClassElement {
Token this.endToken,
Element enclosing,
int id)
- : super(name, enclosing, id);
+ : super(name, enclosing, id, ClassElement.STATE_NOT_STARTED);
+
+ void set supertypeLoadState(int state) {
+ assert(state == supertypeLoadState + 1);
+ assert(state <= ClassElement.STATE_DONE);
+ super.supertypeLoadState = state;
+ }
+
+ void set resolutionState(int state) {
+ assert(state == resolutionState + 1);
+ assert(state <= ClassElement.STATE_DONE);
+ super.resolutionState = state;
+ }
ClassNode parseNode(DiagnosticListener diagnosticListener) {
if (cachedNode != null) return cachedNode;
« no previous file with comments | « dart/lib/compiler/implementation/elements/elements.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698