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

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

Issue 1559233002: WIP: Compute constant expressions in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 0f434f34706a722ecb79d16e9e54d452473fff19..3fe0301dfe636992f7144b3e43358a525d523fbc 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -2154,9 +2154,12 @@ abstract class ConstantConstructorMixin implements ConstructorElement {
return originConstructor.constantConstructor;
}
if (!isConst || isFromEnvironmentConstructor) return null;
- if (_constantConstructor == null) {
+ assert(invariant(this,
+ _constantConstructor != null,
+ message: "Constant constructor has not been computed for $this."));
+ /*if (_constantConstructor == null) {
_constantConstructor = computeConstantConstructor(resolvedAst);
- }
+ }*/
return _constantConstructor;
}
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/js_backend/constant_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698