| Index: pkg/analysis_server/lib/src/services/completion/optype.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/optype.dart b/pkg/analysis_server/lib/src/services/completion/optype.dart
|
| index e9391126764d213054b38285a131bc9c4ad50af5..c9d88bcdf847e12d82a9b32e79e9f25549782cd7 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/optype.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/optype.dart
|
| @@ -605,7 +605,7 @@ class _OpTypeAstVisitor extends GeneralizingAstVisitor {
|
| @override
|
| void visitVariableDeclarationList(VariableDeclarationList node) {
|
| if ((node.keyword == null || node.keyword.lexeme != 'var') &&
|
| - (node.type == null)) {
|
| + (node.type == null || identical(entity, node.type))) {
|
| optype.includeTypeNameSuggestions = true;
|
| }
|
| }
|
|
|