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

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

Issue 1994613004: Handle use of constant constructors with default values. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 9d4a3cfaed923770a25e291e395d15488f687fd0..2381d64022b357abfcc46f8a1b83ca0e81f90309 100644
--- a/pkg/compiler/lib/src/elements/modelx.dart
+++ b/pkg/compiler/lib/src/elements/modelx.dart
@@ -1393,6 +1393,11 @@ class VariableList implements DeclarationSite {
abstract class ConstantVariableMixin implements VariableElement {
ConstantExpression constantCache;
+ // TODO(johnniwinther): Update the on `constant = ...` when evaluation of
+ // constant expression can handle references to unanalyzed constant variables.
+ @override
+ bool get hasConstant => false;
+
ConstantExpression get constant {
if (isPatch) {
ConstantVariableMixin originVariable = origin;

Powered by Google App Engine
This is Rietveld 408576698