| Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
|
| index 325f7235511705dfbbd386a875b094eab0933dfb..c29be046eae2caa6b2598d853f422c789962d5e6 100644
|
| --- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
|
| +++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
|
| @@ -2402,8 +2402,11 @@ class FixProcessor {
|
|
|
| void _appendParameterForArgument(
|
| SourceBuilder sb, Set<String> excluded, int index, Expression argument) {
|
| - // append type name
|
| DartType type = argument.bestType;
|
| + if (type == null || type.isBottom || type.isDartCoreNull) {
|
| + type = DynamicTypeImpl.instance;
|
| + }
|
| + // append type name
|
| String typeSource = utils.getTypeSource(type, librariesToImport);
|
| if (typeSource != 'dynamic') {
|
| sb.startPosition('TYPE$index');
|
|
|