| Index: pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart b/pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart
|
| index 0e15afd9f9831b4bdd94f72596b86a2e35a49368..5abb208511d07e5d3d1a32f20af5d097326b6cfd 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/prefixed_element_contributor.dart
|
| @@ -73,8 +73,20 @@ class _ExpressionSuggestionBuilder implements SuggestionBuilder {
|
| }
|
| }
|
| if (node is Expression) {
|
| + String containingMethodName;
|
| + bool isSuper = node is SuperExpression;
|
| + if (isSuper) {
|
| + MethodDeclaration containingMethod =
|
| + node.getAncestor((p) => p is MethodDeclaration);
|
| + if (containingMethod != null) {
|
| + SimpleIdentifier id = containingMethod.name;
|
| + if (id != null) {
|
| + containingMethodName = id.name;
|
| + }
|
| + }
|
| + }
|
| InterfaceTypeSuggestionBuilder.suggestionsFor(request, node.bestType,
|
| - isSuper: node is SuperExpression);
|
| + isSuper: isSuper, containingMethodName: containingMethodName);
|
| return new Future.value(true);
|
| }
|
| return new Future.value(false);
|
|
|