| Index: pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/testing/element_factory.dart b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| index ba009ad0f6bda1c90d43693b7e52f7110f52b837..17f814e7638ad1902af5cbb1e446643faf6d4005 100644
|
| --- a/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| +++ b/pkg/analyzer/lib/src/generated/testing/element_factory.dart
|
| @@ -164,9 +164,7 @@ class ElementFactory {
|
| // Finish building the enum.
|
| //
|
| enumElement.fields = fields;
|
| -
|
| -
|
| - // Client code isn't allowed to invoke the constructor, so we do not model it.
|
| + // Client code isn't allowed to invoke the constructor, so we do not model it.
|
| return enumElement;
|
| }
|
|
|
| @@ -497,7 +495,7 @@ class ElementFactory {
|
| variable.getter = getter;
|
| FunctionTypeImpl getterType = new FunctionTypeImpl.con1(getter);
|
| getter.type = getterType;
|
| - if (!isFinal) {
|
| + if (!isConst && !isFinal) {
|
| PropertyAccessorElementImpl setter =
|
| new PropertyAccessorElementImpl.forVariable(variable);
|
| setter.setter = true;
|
|
|