Don't prevent 'isCycleFree' updating for resynthesized constructors.
We update it in ConstantEvaluationEngine which in general case does
not know whether the constructor is resynthesized or not.
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org/2047103002 .
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 23ca6fd..0eb96cf 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -2071,7 +2071,8 @@
}
void set isCycleFree(bool isCycleFree) {
- assert(serializedExecutable == null);
+ // This property is updated in ConstantEvaluationEngine even for
+ // resynthesized constructors, so we don't have the usual assert here.
_isCycleFree = isCycleFree;
}
diff --git a/pkg/analyzer/pubspec.yaml b/pkg/analyzer/pubspec.yaml
index 7ccbb6b..4c65104 100644
--- a/pkg/analyzer/pubspec.yaml
+++ b/pkg/analyzer/pubspec.yaml
@@ -1,5 +1,5 @@
name: analyzer
-version: 0.27.4-alpha.9
+version: 0.27.4-alpha.10
author: Dart Team <misc@dartlang.org>
description: Static analyzer for Dart.
homepage: https://github.com/dart-lang/sdk/tree/master/pkg/analyzer