Skip to content

Commit f6dfad0

Browse files
devoncarewcommit-bot@chromium.org
authored andcommitted
[analyzer] add a space to the quick for for REPLACE_COLON_WITH_EQUALS
Change-Id: Ic8ba5a8aa44b9c3ea8c4c1d792117ddd8054c9e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107720 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Devon Carew <[email protected]>
1 parent 67ab3be commit f6dfad0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎pkg/analysis_server/lib/src/services/correction/fix_internal.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3276,7 +3276,7 @@ class FixProcessor {
32763276
var changeBuilder = _newDartChangeBuilder();
32773277
await changeBuilder.addFileEdit(file, (DartFileEditBuilder builder) {
32783278
builder.addSimpleReplacement(
3279-
range.token((node as DefaultFormalParameter).separator), '=');
3279+
range.token((node as DefaultFormalParameter).separator), ' =');
32803280
});
32813281
_addFixFromBuilder(changeBuilder, DartFixKind.REPLACE_COLON_WITH_EQUALS);
32823282
}

‎pkg/analysis_server/test/src/services/correction/fix/replace_colon_with_equals_test.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ f1({a/*LINT*/: 1}) => null;
3232
await assertHasFix('''
3333
void f1({int a}) { }
3434
35-
f1({a/*LINT*/= 1}) => null;
35+
f1({a/*LINT*/ = 1}) => null;
3636
''');
3737
}
3838
}

0 commit comments

Comments
 (0)