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

Unified Diff: pkg/analysis_server/lib/src/services/correction/assist_internal.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/correction/assist_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
index 27cc2cf5c3580e0d3031e52eaa4bff1b14ce0c46..ebd7ca340aa270f36b8a91471d8b1d1dd6dab5f7 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
@@ -505,9 +505,7 @@ class AssistProcessor {
getter = n;
break;
}
- if (n is SimpleIdentifier ||
- n is TypeAnnotation ||
- n is TypeArgumentList) {
+ if (n is SimpleIdentifier || n is TypeName || n is TypeArgumentList) {
continue;
}
break;
@@ -573,7 +571,7 @@ class AssistProcessor {
if (n is SimpleIdentifier ||
n is VariableDeclaration ||
n is VariableDeclarationList ||
- n is TypeAnnotation ||
+ n is TypeName ||
n is TypeArgumentList) {
continue;
}
@@ -1566,7 +1564,7 @@ class AssistProcessor {
return;
}
// we need a type
- TypeAnnotation typeNode = declarationList.type;
+ TypeName typeNode = declarationList.type;
if (typeNode == null) {
_coverageMarker();
return;

Powered by Google App Engine
This is Rietveld 408576698