Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: pkg/analysis_server/lib/src/services/completion/dart/local_declaration_visitor.dart

Issue 2624283003: Revert "Add support for generic function type syntax, part 1" (TBR) (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e290304c28dda43bcddc768843e241b165349094..adf26c7ab6f3b49a889206add424688f459716e4 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, TypeAnnotation type);
+ void declaredLocalVar(SimpleIdentifier name, TypeName type);
void declaredMethod(MethodDeclaration declaration);
- void declaredParam(SimpleIdentifier name, TypeAnnotation type);
+ void declaredParam(SimpleIdentifier name, TypeName type);
void declaredTopLevelVar(
VariableDeclarationList varList, VariableDeclaration varDecl);
@@ -128,7 +128,7 @@ abstract class LocalDeclarationVisitor extends GeneralizingAstVisitor {
@override
void visitForEachStatement(ForEachStatement node) {
SimpleIdentifier id;
- TypeAnnotation type;
+ TypeName 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;
}
- TypeAnnotation type = null;
+ TypeName type = null;
if (normalParam is FieldFormalParameter) {
type = normalParam.type;
} else if (normalParam is FunctionTypedFormalParameter) {

Powered by Google App Engine
This is Rietveld 408576698