| Index: pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart b/pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart
|
| index fed6a7b81bdf9ad2f2f0a1d5514b19d42fff0a38..7f19a511296d8c096a59e15eb9354332a61ec0da 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/inherited_reference_contributor.dart
|
| @@ -12,6 +12,7 @@ import 'package:analysis_server/src/services/completion/dart/completion_manager.
|
| import 'package:analysis_server/src/services/completion/dart/optype.dart';
|
| import 'package:analysis_server/src/services/completion/dart/suggestion_builder.dart';
|
| import 'package:analyzer/dart/ast/ast.dart';
|
| +import 'package:analyzer/dart/ast/resolution_accessors.dart';
|
| import 'package:analyzer/dart/element/element.dart';
|
| import 'package:analyzer/dart/element/type.dart';
|
|
|
| @@ -72,7 +73,8 @@ class InheritedReferenceContributor extends DartCompletionContributor
|
| ? CompletionSuggestionKind.IDENTIFIER
|
| : CompletionSuggestionKind.INVOCATION;
|
| OpType optype = (request as DartCompletionRequestImpl).opType;
|
| - for (InterfaceType type in classDecl.element.allSupertypes) {
|
| + for (InterfaceType type
|
| + in elementForClassDeclaration(classDecl).allSupertypes) {
|
| if (!isFunctionalArgument) {
|
| for (PropertyAccessorElement elem in type.accessors) {
|
| if (elem.isGetter) {
|
|
|