Skip to content

Commit 4e8a4a3

Browse files
munificentCommit Queue
authored andcommitted
Format tests/modular/ using 3.8 style.
Change-Id: I059d96ef2db91ea43cc1a6d2fffd0d6e7718659b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426288 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Lasse Nielsen <[email protected]> Auto-Submit: Bob Nystrom <[email protected]>
1 parent cddee72 commit 4e8a4a3

File tree

7 files changed

+20
-23
lines changed

7 files changed

+20
-23
lines changed

tests/modular/constant_with_mixin/a.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
abstract class A {
6-
const A({
7-
this.d = 3.14,
8-
this.s = 'default',
9-
});
6+
const A({this.d = 3.14, this.s = 'default'});
107

118
final double d;
129
final String s;

tests/modular/constants_2018/def.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ const set1 = {if (val % 2 == 1) 0, if (val % 2 == 0) 1};
77
const set2 = {
88
1,
99
...[2, 3],
10-
4
10+
4,
1111
};

tests/modular/cross_module_constant_with_mixin/a.dart

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ import 't.dart';
77
String _defaultStringy(String t) => t.toLowerCase();
88

99
class A {
10-
A({
11-
double d = 3.14,
12-
StringyFunction<String> s = _defaultStringy,
13-
}) : this.factoryConstructor(d: d, s: s);
10+
A({double d = 3.14, StringyFunction<String> s = _defaultStringy})
11+
: this.factoryConstructor(d: d, s: s);
1412

1513
A.factoryConstructor({
1614
double d = 3.14,
1715
StringyFunction<String> s = _defaultStringy,
18-
}) : d = d,
19-
_s = s;
16+
}) : d = d,
17+
_s = s;
2018

2119
String doStringy(String i) => _s(i);
2220

tests/modular/extension_methods/def.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ extension GenericExtension<T> on GenericClass<T> {
5454
void set property(T value) {
5555
this.field = value;
5656
}
57-
}
57+
}

tests/modular/issue37794/module1.dart

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ class A {
66
final String foo;
77
final List<String> list;
88

9-
const A(
10-
[this.foo = 'foo',
11-
this.list = const [
12-
'l',
13-
...['i', 's'],
14-
't'
15-
]]);
9+
const A([
10+
this.foo = 'foo',
11+
this.list = const [
12+
'l',
13+
...['i', 's'],
14+
't',
15+
],
16+
]);
1617
}

tests/modular/mixin_super/main.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class PointerScrollEvent extends PointerSignalEvent
2929
}
3030

3131
main() {
32-
new PointerScrollEvent()
33-
.debugFillProperties(new DiagnosticPropertiesBuilder());
32+
new PointerScrollEvent().debugFillProperties(
33+
new DiagnosticPropertiesBuilder(),
34+
);
3435
}

tests/modular/private_class_exposed_by_typedef/private_name_library.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const int publicNameSentinel = privateNameSentinel + 1;
1212
/// A private class that will be exported via a public typedef.
1313
class _PrivateClass {
1414
int x;
15-
_PrivateClass(): x = privateNameSentinel;
15+
_PrivateClass() : x = privateNameSentinel;
1616
_PrivateClass.named(this.x);
1717
}
1818

1919
class _PrivateClass2 {
2020
int x;
21-
_PrivateClass2(): x = privateNameSentinel;
21+
_PrivateClass2() : x = privateNameSentinel;
2222
_PrivateClass2.named(this.x);
2323
}
2424

0 commit comments

Comments
 (0)