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

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

Issue 10870010: Evaluate compile-time constants of metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased and use const instead of final 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: 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 149714e1fdfb2417ae595db1de4a80840cbec0f5..5bb5c94e34917c4919c811efd3942a7afa2f9b0b 100644
--- a/dart/lib/compiler/implementation/scanner/class_element_parser.dart
+++ b/dart/lib/compiler/implementation/scanner/class_element_parser.dart
@@ -18,17 +18,17 @@ class PartialClassElement extends ClassElement {
Token this.endToken,
Element enclosing,
int id)
- : super(name, enclosing, id, ClassElement.STATE_NOT_STARTED);
+ : super(name, enclosing, id, STATE_NOT_STARTED);
void set supertypeLoadState(int state) {
assert(state == supertypeLoadState + 1);
- assert(state <= ClassElement.STATE_DONE);
+ assert(state <= STATE_DONE);
super.supertypeLoadState = state;
}
void set resolutionState(int state) {
assert(state == resolutionState + 1);
- assert(state <= ClassElement.STATE_DONE);
+ assert(state <= STATE_DONE);
super.resolutionState = state;
}
@@ -62,8 +62,8 @@ class PartialClassElement extends ClassElement {
PartialClassElement result =
new PartialClassElement(name, beginToken, endToken, enclosing, id);
- assert(this.supertypeLoadState == ClassElement.STATE_NOT_STARTED);
- assert(this.resolutionState == ClassElement.STATE_NOT_STARTED);
+ assert(this.supertypeLoadState == STATE_NOT_STARTED);
+ assert(this.resolutionState == STATE_NOT_STARTED);
assert(this.type === null);
assert(this.supertype === null);
assert(this.defaultClass === null);

Powered by Google App Engine
This is Rietveld 408576698