File tree 2 files changed +6
-6
lines changed
pkg/analysis_server/lib/src/services/correction
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'package:analyzer/dart/ast/ast.dart';
8
8
import 'package:analyzer_plugin/utilities/change_builder/change_builder_dart.dart' ;
9
9
import 'package:analyzer_plugin/utilities/fixes/fixes.dart' ;
10
10
11
- class AddSync extends CorrectionProducer {
11
+ class AddAsync extends CorrectionProducer {
12
12
@override
13
13
FixKind get fixKind => DartFixKind .ADD_ASYNC ;
14
14
@@ -24,5 +24,5 @@ class AddSync extends CorrectionProducer {
24
24
}
25
25
26
26
/// Return an instance of this class. Used as a tear-off in `FixProcessor` .
27
- static AddSync newInstance () => AddSync ();
27
+ static AddAsync newInstance () => AddAsync ();
28
28
}
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ class FixProcessor extends BaseProcessor {
300
300
RemoveTypeAnnotation .newInstance,
301
301
],
302
302
LintNames .avoid_returning_null_for_future: [
303
- AddSync .newInstance,
303
+ AddAsync .newInstance,
304
304
WrapInFuture .newInstance,
305
305
],
306
306
LintNames .avoid_types_as_parameter_names: [
@@ -573,10 +573,10 @@ class FixProcessor extends BaseProcessor {
573
573
/// generators used for lint rules are in the [lintProducerMap] .
574
574
static const Map <ErrorCode , List <ProducerGenerator >> nonLintProducerMap = {
575
575
CompileTimeErrorCode .ASYNC_FOR_IN_WRONG_CONTEXT : [
576
- AddSync .newInstance,
576
+ AddAsync .newInstance,
577
577
],
578
578
CompileTimeErrorCode .AWAIT_IN_WRONG_CONTEXT : [
579
- AddSync .newInstance,
579
+ AddAsync .newInstance,
580
580
],
581
581
CompileTimeErrorCode .CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE : [
582
582
UseConst .newInstance,
@@ -989,7 +989,7 @@ class FixProcessor extends BaseProcessor {
989
989
CreateSetter .newInstance,
990
990
],
991
991
StaticWarningCode .UNDEFINED_IDENTIFIER_AWAIT : [
992
- AddSync .newInstance,
992
+ AddAsync .newInstance,
993
993
],
994
994
};
995
995
You can’t perform that action at this time.
0 commit comments