| Index: pkg/analysis_services/lib/src/completion/local_computer.dart
|
| diff --git a/pkg/analysis_services/lib/src/completion/local_computer.dart b/pkg/analysis_services/lib/src/completion/local_computer.dart
|
| index 8a6799d24099e217a17d11ebd75ac4f19395f57d..a17b066a618f174c92c72efad4d2a998fbf67b36 100644
|
| --- a/pkg/analysis_services/lib/src/completion/local_computer.dart
|
| +++ b/pkg/analysis_services/lib/src/completion/local_computer.dart
|
| @@ -87,7 +87,9 @@ class _LocalVisitor extends GeneralizingAstVisitor<dynamic> {
|
| } else if (stmt is VariableDeclarationStatement) {
|
| stmt.variables.variables.forEach((VariableDeclaration varDecl) {
|
| if (varDecl.end < offset) {
|
| - addSuggestion(varDecl.name, CompletionSuggestionKind.VARIABLE);
|
| + addSuggestion(
|
| + varDecl.name,
|
| + CompletionSuggestionKind.LOCAL_VARIABLE);
|
| }
|
| });
|
| }
|
| @@ -143,12 +145,12 @@ class _LocalVisitor extends GeneralizingAstVisitor<dynamic> {
|
| }
|
|
|
| visitForEachStatement(ForEachStatement node) {
|
| - addSuggestion(node.identifier, CompletionSuggestionKind.VARIABLE);
|
| + addSuggestion(node.identifier, CompletionSuggestionKind.LOCAL_VARIABLE);
|
| visitNode(node);
|
| }
|
|
|
| visitForStatement(ForStatement node) {
|
| - addSuggestions(node.variables, CompletionSuggestionKind.VARIABLE);
|
| + addSuggestions(node.variables, CompletionSuggestionKind.LOCAL_VARIABLE);
|
| visitNode(node);
|
| }
|
|
|
|
|