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

Unified Diff: pkg/analysis_server/lib/src/services/correction/assist_internal.dart

Issue 2622303006: Reapply "Add support for generic function type syntax, part 1" (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 ebd7ca340aa270f36b8a91471d8b1d1dd6dab5f7..27cc2cf5c3580e0d3031e52eaa4bff1b14ce0c46 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
@@ -505,7 +505,9 @@ class AssistProcessor {
getter = n;
break;
}
- if (n is SimpleIdentifier || n is TypeName || n is TypeArgumentList) {
+ if (n is SimpleIdentifier ||
+ n is TypeAnnotation ||
+ n is TypeArgumentList) {
continue;
}
break;
@@ -571,7 +573,7 @@ class AssistProcessor {
if (n is SimpleIdentifier ||
n is VariableDeclaration ||
n is VariableDeclarationList ||
- n is TypeName ||
+ n is TypeAnnotation ||
n is TypeArgumentList) {
continue;
}
@@ -1564,7 +1566,7 @@ class AssistProcessor {
return;
}
// we need a type
- TypeName typeNode = declarationList.type;
+ TypeAnnotation typeNode = declarationList.type;
if (typeNode == null) {
_coverageMarker();
return;

Powered by Google App Engine
This is Rietveld 408576698