| Index: sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
|
| index c10471689bf60eec174ca0650e8a83191e639cce..9ed654cf5e4ceac76ec7981626918409dee59d9f 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart
|
| @@ -205,7 +205,7 @@ class DartBackend extends Backend {
|
| Link<Element> optionalParameters =
|
| element.functionSignature.optionalParameters;
|
| for (final optional in optionalParameters) {
|
| - if (optional.kind != ElementKind.FIELD_PARAMETER) continue;
|
| + if (!optional.isInitializingFormal) continue;
|
| fixedMemberNames.add(optional.name);
|
| }
|
| }
|
| @@ -301,7 +301,7 @@ class DartBackend extends Backend {
|
| }
|
| ElementAst elementAst = parse(element);
|
|
|
| - if (element.isMember) {
|
| + if (element.isClassMember) {
|
| ClassElement enclosingClass = element.enclosingClass;
|
| assert(enclosingClass.isClass);
|
| assert(enclosingClass.isTopLevel);
|
|
|