DAS: reformat
Recently a bug was fixed in the formatter, regarding how declarations preceded by an end-of-line comment are formatted. Good to just bundle the formatting changes into one CL. Change-Id: Ieab8ec3263932505f8b8da77fbe637dffc61b46d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/417040 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
committed by
Commit Queue
parent
6659d54d49
commit
d3adf41b9a
@@ -60,9 +60,9 @@ class IdentifierHelper {
|
||||
return;
|
||||
}
|
||||
for (var childElement in state.libraryElement.children2) {
|
||||
if (childElement.name3 == candidateName) {
|
||||
// Don't suggest a name that's already declared in the library.
|
||||
return;
|
||||
if (childElement.name3 == candidateName) {
|
||||
// Don't suggest a name that's already declared in the library.
|
||||
return;
|
||||
}
|
||||
}
|
||||
var matcherScore = state.matcher.score(candidateName);
|
||||
|
||||
@@ -27,9 +27,8 @@ class AddAsync extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_ASYNC;
|
||||
|
||||
@@ -27,10 +27,9 @@ class AddAwait extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Adding `await` can change behaviour and is not clearly the right
|
||||
// choice. See https://github.com/dart-lang/sdk/issues/54022.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Adding `await` can change behaviour and is not clearly the right
|
||||
// choice. See https://github.com/dart-lang/sdk/issues/54022.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_AWAIT;
|
||||
|
||||
@@ -17,9 +17,8 @@ class AddCallSuper extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Adding as the first statement is not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Adding as the first statement is not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_addition];
|
||||
|
||||
@@ -13,9 +13,8 @@ class AddEolAtEndOfFile extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_EOL_AT_END_OF_FILE;
|
||||
|
||||
@@ -60,9 +60,8 @@ class _AddOverride extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_name];
|
||||
|
||||
+3
-4
@@ -16,10 +16,9 @@ class AddMissingEnumCaseClauses extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Adding the missing case is not a sufficient fix (user logic needs
|
||||
// adding too).
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Adding the missing case is not a sufficient fix (user logic needs
|
||||
// adding too).
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_MISSING_ENUM_CASE_CLAUSES;
|
||||
|
||||
+2
-3
@@ -16,9 +16,8 @@ class AddMissingEnumLikeCaseClauses extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_MISSING_ENUM_CASE_CLAUSES;
|
||||
|
||||
@@ -16,10 +16,9 @@ class AddMissingSwitchCases extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Adding the missing cases is not a sufficient fix (user logic needs
|
||||
// to be added as well).
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Adding the missing cases is not a sufficient fix (user logic needs
|
||||
// to be added as well).
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_MISSING_SWITCH_CASES;
|
||||
|
||||
@@ -27,8 +27,7 @@ class AddNullCheck extends ResolvedCorrectionProducer {
|
||||
//
|
||||
// > Producers used in bulk fixes must not modify the FixKind during
|
||||
// > computation.
|
||||
FixKind
|
||||
fixKind = DartFixKind.ADD_NULL_CHECK;
|
||||
FixKind fixKind = DartFixKind.ADD_NULL_CHECK;
|
||||
|
||||
@override
|
||||
List<String>? fixArguments;
|
||||
|
||||
@@ -14,9 +14,8 @@ class AddRequiredKeyword extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_REQUIRED;
|
||||
|
||||
@@ -13,9 +13,8 @@ class AddStatic extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ADD_STATIC;
|
||||
|
||||
+2
-3
@@ -77,9 +77,8 @@ class _AddInvocation extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments {
|
||||
|
||||
@@ -21,9 +21,8 @@ class AddSuperParameter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_missingCount == 1 ? '' : 's'];
|
||||
|
||||
@@ -169,9 +169,8 @@ class _ImportAddHide extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments {
|
||||
@@ -243,9 +242,8 @@ class _ImportRemoveShow extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments {
|
||||
|
||||
@@ -19,9 +19,8 @@ class AssignToLocalVariable extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.ASSIGN_TO_LOCAL_VARIABLE;
|
||||
|
||||
@@ -92,9 +92,8 @@ class _ChangeName extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_proposedName];
|
||||
|
||||
+2
-3
@@ -17,9 +17,8 @@ class ChangeToNearestPreciseValue extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_correction];
|
||||
|
||||
@@ -17,9 +17,8 @@ class ChangeToStaticAccess extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_className];
|
||||
|
||||
@@ -20,9 +20,8 @@ class ChangeTypeAnnotation extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_oldAnnotation, _newAnnotation];
|
||||
|
||||
@@ -17,9 +17,8 @@ class ConvertClassToMixin extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_CLASS_TO_MIXIN;
|
||||
|
||||
+2
-3
@@ -15,9 +15,8 @@ class ConvertDocumentationIntoBlock extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_DOCUMENTATION_INTO_BLOCK;
|
||||
|
||||
@@ -16,9 +16,8 @@ class ConvertFlutterChild extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_FLUTTER_CHILD;
|
||||
|
||||
@@ -15,9 +15,8 @@ class ConvertFlutterChildren extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_FLUTTER_CHILDREN;
|
||||
|
||||
@@ -13,9 +13,8 @@ class ConvertIntoAsyncBody extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_INTO_ASYNC_BODY;
|
||||
|
||||
@@ -17,9 +17,8 @@ class ConvertIntoForIndex extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_INTO_FOR_INDEX;
|
||||
|
||||
@@ -19,9 +19,8 @@ class ConvertIntoGetter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String>? get assistArguments => [_memberName];
|
||||
|
||||
@@ -16,9 +16,8 @@ class ConvertIntoIsNotEmpty extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_INTO_IS_NOT_EMPTY;
|
||||
|
||||
@@ -14,9 +14,8 @@ class ConvertPartOfToUri extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_PART_OF_TO_URI;
|
||||
|
||||
+2
-3
@@ -17,9 +17,8 @@ class ConvertRelatedToCascade extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_RELATED_TO_CASCADE;
|
||||
|
||||
@@ -15,9 +15,8 @@ class ConvertToCascade extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_CASCADE;
|
||||
|
||||
+2
-3
@@ -13,9 +13,8 @@ class ConvertToConstantPattern extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_CONSTANT_PATTERN;
|
||||
|
||||
+2
-3
@@ -17,9 +17,8 @@ class ConvertToFieldParameter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_TO_FIELD_PARAMETER;
|
||||
|
||||
+2
-3
@@ -18,9 +18,8 @@ class ConvertToIfCaseStatement extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_TO_IF_CASE_STATEMENT;
|
||||
|
||||
+2
-3
@@ -15,9 +15,8 @@ class ConvertToIfCaseStatementChain extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind =>
|
||||
|
||||
+3
-4
@@ -16,10 +16,9 @@ class ConvertToInitializingFormal extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// The fix isn't able to remove the initializer list / block function body
|
||||
// in the case where multiple initializers / statements are being removed.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// The fix isn't able to remove the initializer list / block function body
|
||||
// in the case where multiple initializers / statements are being removed.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_INITIALIZING_FORMAL;
|
||||
|
||||
+2
-3
@@ -14,9 +14,8 @@ class ConvertToMultilineString extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_TO_MULTILINE_STRING;
|
||||
|
||||
+2
-3
@@ -16,9 +16,8 @@ class ConvertToNamedArguments extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NAMED_ARGUMENTS;
|
||||
|
||||
+2
-3
@@ -15,9 +15,8 @@ class ConvertToNormalParameter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_TO_NORMAL_PARAMETER;
|
||||
|
||||
+2
-3
@@ -13,9 +13,8 @@ class ConvertToNullAwareListElement extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NULL_AWARE_LIST_ELEMENT;
|
||||
|
||||
+4
-6
@@ -13,9 +13,8 @@ class ConvertToNullAwareMapEntryKey extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NULL_AWARE_MAP_ENTRY_KEY;
|
||||
@@ -38,9 +37,8 @@ class ConvertToNullAwareMapEntryValue extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NULL_AWARE_MAP_ENTRY_VALUE;
|
||||
|
||||
+2
-3
@@ -13,9 +13,8 @@ class ConvertToNullAwareSetElement extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NULL_AWARE_SET_ELEMENT;
|
||||
|
||||
+2
-3
@@ -13,9 +13,8 @@ class ConvertToNullAwareSpread extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_NULL_AWARE_SPREAD;
|
||||
|
||||
@@ -17,9 +17,8 @@ class ConvertToOnType extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_ON_TYPE;
|
||||
|
||||
+2
-3
@@ -31,9 +31,8 @@ class ConvertToSwitchExpression extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.CONVERT_TO_SWITCH_EXPRESSION;
|
||||
|
||||
+2
-3
@@ -13,9 +13,8 @@ class ConvertToWildcardPattern extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CONVERT_TO_WILDCARD_PATTERN;
|
||||
|
||||
@@ -18,9 +18,8 @@ class CreateClass extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [className];
|
||||
|
||||
+2
-3
@@ -27,9 +27,8 @@ class CreateConstructorForFinalFields extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => _style.fixKind;
|
||||
|
||||
@@ -58,9 +58,8 @@ class _CreateConstructor extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments {
|
||||
|
||||
@@ -17,9 +17,8 @@ class CreateFile extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_fileName];
|
||||
|
||||
@@ -16,9 +16,8 @@ class CreateFunction extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_functionName];
|
||||
|
||||
@@ -18,9 +18,8 @@ class CreateLocalVariable extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_variableName];
|
||||
|
||||
@@ -25,9 +25,8 @@ class CreateMethodOrFunction extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_functionName];
|
||||
|
||||
@@ -18,9 +18,8 @@ class CreateMixin extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_mixinName];
|
||||
|
||||
@@ -13,9 +13,8 @@ class CreateNoSuchMethod extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.CREATE_NO_SUCH_METHOD;
|
||||
|
||||
@@ -80,9 +80,8 @@ class DataDrivenFix extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
/// Return a description of the element that was changed.
|
||||
ElementDescriptor get element => _transform.element;
|
||||
|
||||
+2
-3
@@ -22,9 +22,8 @@ class DestructureLocalVariableAssignment extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind =>
|
||||
|
||||
@@ -15,9 +15,8 @@ class ExchangeOperands extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.EXCHANGE_OPERANDS;
|
||||
|
||||
@@ -15,9 +15,8 @@ class ExtendClassForMixin extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_typeName];
|
||||
|
||||
@@ -19,9 +19,8 @@ class ExtractLocalVariable extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.EXTRACT_LOCAL_VARIABLE;
|
||||
|
||||
+2
-3
@@ -15,9 +15,8 @@ class FlutterConvertToChildren extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.FLUTTER_CONVERT_TO_CHILDREN;
|
||||
|
||||
+2
-3
@@ -21,9 +21,8 @@ class FlutterConvertToStatefulWidget extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind =>
|
||||
|
||||
+2
-3
@@ -22,9 +22,8 @@ class FlutterConvertToStatelessWidget extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind =>
|
||||
|
||||
@@ -16,9 +16,8 @@ class FlutterMoveDown extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.FLUTTER_MOVE_DOWN;
|
||||
|
||||
@@ -16,9 +16,8 @@ class FlutterMoveUp extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.FLUTTER_MOVE_UP;
|
||||
|
||||
@@ -20,11 +20,10 @@ class FlutterRemoveWidget extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
// TODO(pq): find out why overlapping edits were not being applied (and
|
||||
// enable).
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
// TODO(pq): find out why overlapping edits were not being applied (and
|
||||
// enable).
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.FLUTTER_REMOVE_WIDGET;
|
||||
|
||||
@@ -15,9 +15,8 @@ abstract class FlutterParentAndChild extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
Future<void> swapParentAndChild(
|
||||
ChangeBuilder builder,
|
||||
|
||||
@@ -260,9 +260,8 @@ abstract class _WrapMultipleWidgets extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
String get _parentClassName;
|
||||
|
||||
@@ -322,9 +321,8 @@ abstract class _WrapSingleWidget extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
List<String> get _leadingLines => const [];
|
||||
|
||||
|
||||
@@ -15,9 +15,8 @@ class FlutterWrapGeneric extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.FLUTTER_WRAP_GENERIC;
|
||||
|
||||
@@ -12,9 +12,8 @@ class InsertBody extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.INSERT_BODY;
|
||||
|
||||
@@ -14,9 +14,8 @@ class InsertOnKeyword extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Supports single instance and in file corrections
|
||||
CorrectionApplicability
|
||||
.acrossSingleFile;
|
||||
// Supports single instance and in file corrections
|
||||
CorrectionApplicability.acrossSingleFile;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.INSERT_ON_KEYWORD;
|
||||
|
||||
@@ -13,9 +13,8 @@ class InsertSemicolon extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Supports single instance and in file corrections
|
||||
CorrectionApplicability
|
||||
.acrossSingleFile;
|
||||
// Supports single instance and in file corrections
|
||||
CorrectionApplicability.acrossSingleFile;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.INSERT_SEMICOLON;
|
||||
|
||||
+2
-3
@@ -14,9 +14,8 @@ class InvertConditionalExpression extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.INVERT_CONDITIONAL_EXPRESSION;
|
||||
|
||||
@@ -14,9 +14,8 @@ class InvertIfStatement extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.INVERT_IF_STATEMENT;
|
||||
|
||||
@@ -140,9 +140,8 @@ abstract class _JoinIfWithElseBlock extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
String _blockSource(
|
||||
Block block,
|
||||
|
||||
@@ -16,9 +16,8 @@ class JoinIfWithInner extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.JOIN_IF_WITH_INNER;
|
||||
|
||||
@@ -16,9 +16,8 @@ class JoinIfWithOuter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.JOIN_IF_WITH_OUTER;
|
||||
|
||||
@@ -15,9 +15,8 @@ class JoinVariableDeclaration extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AssistKind get assistKind => DartAssistKind.JOIN_VARIABLE_DECLARATION;
|
||||
|
||||
@@ -15,9 +15,8 @@ class MakeClassAbstract extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_className];
|
||||
|
||||
+3
-4
@@ -18,10 +18,9 @@ class MakeConditionalOnDebugMode extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// This fix isn't enabled for fix-all or bulk fix because it doesn't
|
||||
// currently account for having multiple `print` invocations in sequence.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// This fix isn't enabled for fix-all or bulk fix because it doesn't
|
||||
// currently account for having multiple `print` invocations in sequence.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.MAKE_CONDITIONAL_ON_DEBUG_MODE;
|
||||
|
||||
@@ -17,9 +17,8 @@ class MakeFieldPublic extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String>? get fixArguments => [_fieldName];
|
||||
|
||||
@@ -14,9 +14,8 @@ class MakeReturnTypeNullable extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.MAKE_RETURN_TYPE_NULLABLE;
|
||||
|
||||
+2
-3
@@ -15,9 +15,8 @@ class MakeSuperInvocationLast extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.MAKE_SUPER_INVOCATION_LAST;
|
||||
|
||||
@@ -19,9 +19,8 @@ class MakeVariableNotFinal extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_variableName];
|
||||
|
||||
@@ -23,9 +23,8 @@ class MakeVariableNullable extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_variableName];
|
||||
|
||||
+2
-3
@@ -16,9 +16,8 @@ class MoveAnnotationToLibraryDirective extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.MOVE_ANNOTATION_TO_LIBRARY_DIRECTIVE;
|
||||
|
||||
+2
-3
@@ -16,9 +16,8 @@ class MoveTypeArgumentsToClass extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.MOVE_TYPE_ARGUMENTS_TO_CLASS;
|
||||
|
||||
@@ -14,9 +14,8 @@ class OrganizeImports extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Bulk application is supported by a distinct import cleanup fix phase.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Bulk application is supported by a distinct import cleanup fix phase.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.ORGANIZE_IMPORTS;
|
||||
|
||||
@@ -15,9 +15,8 @@ class QualifyReference extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_qualifiedName];
|
||||
|
||||
@@ -17,9 +17,8 @@ class RemoveAnnotation extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_annotationName];
|
||||
|
||||
@@ -14,9 +14,8 @@ class RemoveAssertion extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_ASSERTION;
|
||||
|
||||
@@ -15,9 +15,8 @@ class RemoveCharacter extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_codePoint];
|
||||
|
||||
@@ -16,9 +16,8 @@ class RemoveConstructor extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_CONSTRUCTOR;
|
||||
|
||||
@@ -18,9 +18,8 @@ class RemoveDeadCode extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
AstNode? get coveringNode {
|
||||
|
||||
@@ -16,10 +16,9 @@ class RemoveDeadIfNull extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// This fix removes the right operand of an if-null which is not
|
||||
// predictably the right thing to do.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// This fix removes the right operand of an if-null which is not
|
||||
// predictably the right thing to do.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_IF_NULL_OPERATOR;
|
||||
|
||||
@@ -14,9 +14,8 @@ class RemoveDefaultValue extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_DEFAULT_VALUE;
|
||||
|
||||
+2
-3
@@ -17,9 +17,8 @@ class RemoveNameFromCombinator extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// Not predictably the correct action.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_combinatorKind];
|
||||
|
||||
+2
-3
@@ -16,9 +16,8 @@ class RemoveNameFromDeclarationClause extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
List<String> get fixArguments => [_fixMessage];
|
||||
|
||||
+2
-3
@@ -14,9 +14,8 @@ class RemoveParametersInGetterDeclaration extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_PARAMETERS_IN_GETTER_DECLARATION;
|
||||
|
||||
+2
-3
@@ -14,9 +14,8 @@ class RemoveParenthesesInGetterInvocation extends ResolvedCorrectionProducer {
|
||||
|
||||
@override
|
||||
CorrectionApplicability get applicability =>
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability
|
||||
.singleLocation;
|
||||
// TODO(applicability): comment on why.
|
||||
CorrectionApplicability.singleLocation;
|
||||
|
||||
@override
|
||||
FixKind get fixKind => DartFixKind.REMOVE_PARENTHESIS_IN_GETTER_INVOCATION;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user