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 .
This commit is contained in:
Konstantin Shcheglov 2016-06-07 19:21:03 -07:00
parent 7d9e75e0b6
commit 0f061f1987
2 changed files with 3 additions and 2 deletions

View file

@ -2071,7 +2071,8 @@ class ConstructorElementImpl extends ExecutableElementImpl
}
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;
}

View file

@ -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