| 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;
|
|
|