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