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

Unified Diff: dart/lib/compiler/implementation/compile_time_constants.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/compile_time_constants.dart
diff --git a/dart/lib/compiler/implementation/compile_time_constants.dart b/dart/lib/compiler/implementation/compile_time_constants.dart
index 4b57f4e3447e8f84c49189e058066b9117c3853a..c0e428ab1e7df953dc6841fe307e89742edf20fc 100644
--- a/dart/lib/compiler/implementation/compile_time_constants.dart
+++ b/dart/lib/compiler/implementation/compile_time_constants.dart
@@ -1131,7 +1131,7 @@ class ConstructorEvaluator extends CompileTimeConstantEvaluator {
ClassElement superClass = enclosingClass.superclass;
if (enclosingClass != compiler.objectClass) {
assert(superClass !== null);
- assert(superClass.resolutionState == ClassElement.STATE_DONE);
+ assert(superClass.resolutionState == STATE_DONE);
FunctionElement targetConstructor =
superClass.lookupConstructor(superClass.name);
if (targetConstructor === null) {

Powered by Google App Engine
This is Rietveld 408576698