Skip to content

Commit d3adf41

Browse files
srawlinsCommit Queue
authored andcommitted
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 <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 6659d54 commit d3adf41

File tree

144 files changed

+356
-481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+356
-481
lines changed

pkg/analysis_server/lib/src/services/completion/dart/identifier_helper.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class IdentifierHelper {
6060
return;
6161
}
6262
for (var childElement in state.libraryElement.children2) {
63-
if (childElement.name3 == candidateName) {
64-
// Don't suggest a name that's already declared in the library.
65-
return;
63+
if (childElement.name3 == candidateName) {
64+
// Don't suggest a name that's already declared in the library.
65+
return;
6666
}
6767
}
6868
var matcherScore = state.matcher.score(candidateName);

pkg/analysis_server/lib/src/services/correction/dart/add_async.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ class AddAsync extends ResolvedCorrectionProducer {
2727

2828
@override
2929
CorrectionApplicability get applicability =>
30-
// Not predictably the correct action.
31-
CorrectionApplicability
32-
.singleLocation;
30+
// Not predictably the correct action.
31+
CorrectionApplicability.singleLocation;
3332

3433
@override
3534
FixKind get fixKind => DartFixKind.ADD_ASYNC;

pkg/analysis_server/lib/src/services/correction/dart/add_await.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ class AddAwait extends ResolvedCorrectionProducer {
2727

2828
@override
2929
CorrectionApplicability get applicability =>
30-
// Adding `await` can change behaviour and is not clearly the right
31-
// choice. See https://github.com/dart-lang/sdk/issues/54022.
32-
CorrectionApplicability
33-
.singleLocation;
30+
// Adding `await` can change behaviour and is not clearly the right
31+
// choice. See https://github.com/dart-lang/sdk/issues/54022.
32+
CorrectionApplicability.singleLocation;
3433

3534
@override
3635
FixKind get fixKind => DartFixKind.ADD_AWAIT;

pkg/analysis_server/lib/src/services/correction/dart/add_call_super.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ class AddCallSuper extends ResolvedCorrectionProducer {
1717

1818
@override
1919
CorrectionApplicability get applicability =>
20-
// Adding as the first statement is not predictably the correct action.
21-
CorrectionApplicability
22-
.singleLocation;
20+
// Adding as the first statement is not predictably the correct action.
21+
CorrectionApplicability.singleLocation;
2322

2423
@override
2524
List<String> get fixArguments => [_addition];

pkg/analysis_server/lib/src/services/correction/dart/add_eol_at_end_of_file.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ class AddEolAtEndOfFile extends ResolvedCorrectionProducer {
1313

1414
@override
1515
CorrectionApplicability get applicability =>
16-
// TODO(applicability): comment on why.
17-
CorrectionApplicability
18-
.singleLocation;
16+
// TODO(applicability): comment on why.
17+
CorrectionApplicability.singleLocation;
1918

2019
@override
2120
FixKind get fixKind => DartFixKind.ADD_EOL_AT_END_OF_FILE;

pkg/analysis_server/lib/src/services/correction/dart/add_extension_override.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ class _AddOverride extends ResolvedCorrectionProducer {
6060

6161
@override
6262
CorrectionApplicability get applicability =>
63-
// TODO(applicability): comment on why.
64-
CorrectionApplicability
65-
.singleLocation;
63+
// TODO(applicability): comment on why.
64+
CorrectionApplicability.singleLocation;
6665

6766
@override
6867
List<String> get fixArguments => [_name];

pkg/analysis_server/lib/src/services/correction/dart/add_missing_enum_case_clauses.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ class AddMissingEnumCaseClauses extends ResolvedCorrectionProducer {
1616

1717
@override
1818
CorrectionApplicability get applicability =>
19-
// Adding the missing case is not a sufficient fix (user logic needs
20-
// adding too).
21-
CorrectionApplicability
22-
.singleLocation;
19+
// Adding the missing case is not a sufficient fix (user logic needs
20+
// adding too).
21+
CorrectionApplicability.singleLocation;
2322

2423
@override
2524
FixKind get fixKind => DartFixKind.ADD_MISSING_ENUM_CASE_CLAUSES;

pkg/analysis_server/lib/src/services/correction/dart/add_missing_enum_like_case_clauses.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ class AddMissingEnumLikeCaseClauses extends ResolvedCorrectionProducer {
1616

1717
@override
1818
CorrectionApplicability get applicability =>
19-
// TODO(applicability): comment on why.
20-
CorrectionApplicability
21-
.singleLocation;
19+
// TODO(applicability): comment on why.
20+
CorrectionApplicability.singleLocation;
2221

2322
@override
2423
FixKind get fixKind => DartFixKind.ADD_MISSING_ENUM_CASE_CLAUSES;

pkg/analysis_server/lib/src/services/correction/dart/add_missing_switch_cases.dart

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ class AddMissingSwitchCases extends ResolvedCorrectionProducer {
1616

1717
@override
1818
CorrectionApplicability get applicability =>
19-
// Adding the missing cases is not a sufficient fix (user logic needs
20-
// to be added as well).
21-
CorrectionApplicability
22-
.singleLocation;
19+
// Adding the missing cases is not a sufficient fix (user logic needs
20+
// to be added as well).
21+
CorrectionApplicability.singleLocation;
2322

2423
@override
2524
FixKind get fixKind => DartFixKind.ADD_MISSING_SWITCH_CASES;

pkg/analysis_server/lib/src/services/correction/dart/add_null_check.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class AddNullCheck extends ResolvedCorrectionProducer {
2727
//
2828
// > Producers used in bulk fixes must not modify the FixKind during
2929
// > computation.
30-
FixKind
31-
fixKind = DartFixKind.ADD_NULL_CHECK;
30+
FixKind fixKind = DartFixKind.ADD_NULL_CHECK;
3231

3332
@override
3433
List<String>? fixArguments;

0 commit comments

Comments
 (0)