| Index: pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart b/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart
|
| index adf26c7ab6f3b49a889206add424688f459716e4..e290304c28dda43bcddc768843e241b165349094 100644
|
| --- a/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart
|
| @@ -39,11 +39,11 @@ abstract class LocalDeclarationVisitor extends GeneralizingAstVisitor {
|
|
|
| void declaredLabel(Label label, bool isCaseLabel);
|
|
|
| - void declaredLocalVar(SimpleIdentifier name, TypeName type);
|
| + void declaredLocalVar(SimpleIdentifier name, TypeAnnotation type);
|
|
|
| void declaredMethod(MethodDeclaration declaration);
|
|
|
| - void declaredParam(SimpleIdentifier name, TypeName type);
|
| + void declaredParam(SimpleIdentifier name, TypeAnnotation type);
|
|
|
| void declaredTopLevelVar(
|
| VariableDeclarationList varList, VariableDeclaration varDecl);
|
| @@ -128,7 +128,7 @@ abstract class LocalDeclarationVisitor extends GeneralizingAstVisitor {
|
| @override
|
| void visitForEachStatement(ForEachStatement node) {
|
| SimpleIdentifier id;
|
| - TypeName type;
|
| + TypeAnnotation type;
|
| DeclaredIdentifier loopVar = node.loopVariable;
|
| if (loopVar != null) {
|
| id = loopVar.identifier;
|
| @@ -233,7 +233,7 @@ abstract class LocalDeclarationVisitor extends GeneralizingAstVisitor {
|
| } else if (param is NormalFormalParameter) {
|
| normalParam = param;
|
| }
|
| - TypeName type = null;
|
| + TypeAnnotation type = null;
|
| if (normalParam is FieldFormalParameter) {
|
| type = normalParam.type;
|
| } else if (normalParam is FunctionTypedFormalParameter) {
|
|
|