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

Unified Diff: pkg/compiler/lib/src/elements/modelx.dart

Issue 1376863004: Avoid eager enqueueing from resolution (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update minimal_resolution_test. Created 5 years, 2 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: pkg/compiler/lib/src/elements/modelx.dart
diff --git a/pkg/compiler/lib/src/elements/modelx.dart b/pkg/compiler/lib/src/elements/modelx.dart
index f1d4c5bb04fe6dd1ea4afdecb656901fe57a8e12..90574fbc956f40f9c87109a2633cbc2d85ecedcc 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -2593,7 +2593,8 @@ abstract class BaseClassElementX extends ElementX
* The returned element may not be resolved yet.
*/
ClassElement get superclass {
- assert(supertypeLoadState == STATE_DONE);
+ assert(invariant(this, supertypeLoadState == STATE_DONE,
+ message: "Superclass has not been computed for $this."));
return supertype == null ? null : supertype.element;
}

Powered by Google App Engine
This is Rietveld 408576698