Format tests/modular/ using 3.8 style.
Change-Id: I059d96ef2db91ea43cc1a6d2fffd0d6e7718659b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426288
Reviewed-by: Lasse Nielsen <lrn@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
Auto-Submit: Bob Nystrom <rnystrom@google.com>
diff --git a/tests/modular/constant_with_mixin/a.dart b/tests/modular/constant_with_mixin/a.dart
index a8bc4c0..6e74d73 100644
--- a/tests/modular/constant_with_mixin/a.dart
+++ b/tests/modular/constant_with_mixin/a.dart
@@ -3,10 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
abstract class A {
- const A({
- this.d = 3.14,
- this.s = 'default',
- });
+ const A({this.d = 3.14, this.s = 'default'});
final double d;
final String s;
diff --git a/tests/modular/constants_2018/def.dart b/tests/modular/constants_2018/def.dart
index 55e9f4d..af8e013 100644
--- a/tests/modular/constants_2018/def.dart
+++ b/tests/modular/constants_2018/def.dart
@@ -7,5 +7,5 @@
const set2 = {
1,
...[2, 3],
- 4
+ 4,
};
diff --git a/tests/modular/cross_module_constant_with_mixin/a.dart b/tests/modular/cross_module_constant_with_mixin/a.dart
index 3e1b8b9..b025483 100644
--- a/tests/modular/cross_module_constant_with_mixin/a.dart
+++ b/tests/modular/cross_module_constant_with_mixin/a.dart
@@ -7,16 +7,14 @@
String _defaultStringy(String t) => t.toLowerCase();
class A {
- A({
- double d = 3.14,
- StringyFunction<String> s = _defaultStringy,
- }) : this.factoryConstructor(d: d, s: s);
+ A({double d = 3.14, StringyFunction<String> s = _defaultStringy})
+ : this.factoryConstructor(d: d, s: s);
A.factoryConstructor({
double d = 3.14,
StringyFunction<String> s = _defaultStringy,
- }) : d = d,
- _s = s;
+ }) : d = d,
+ _s = s;
String doStringy(String i) => _s(i);
diff --git a/tests/modular/extension_methods/def.dart b/tests/modular/extension_methods/def.dart
index d58df3b4..163c695 100644
--- a/tests/modular/extension_methods/def.dart
+++ b/tests/modular/extension_methods/def.dart
@@ -54,4 +54,4 @@
void set property(T value) {
this.field = value;
}
-}
\ No newline at end of file
+}
diff --git a/tests/modular/issue37794/module1.dart b/tests/modular/issue37794/module1.dart
index 6a41a30..a307004 100644
--- a/tests/modular/issue37794/module1.dart
+++ b/tests/modular/issue37794/module1.dart
@@ -6,11 +6,12 @@
final String foo;
final List<String> list;
- const A(
- [this.foo = 'foo',
- this.list = const [
- 'l',
- ...['i', 's'],
- 't'
- ]]);
+ const A([
+ this.foo = 'foo',
+ this.list = const [
+ 'l',
+ ...['i', 's'],
+ 't',
+ ],
+ ]);
}
diff --git a/tests/modular/mixin_super/main.dart b/tests/modular/mixin_super/main.dart
index c3bdc7e..8e78733 100644
--- a/tests/modular/mixin_super/main.dart
+++ b/tests/modular/mixin_super/main.dart
@@ -29,6 +29,7 @@
}
main() {
- new PointerScrollEvent()
- .debugFillProperties(new DiagnosticPropertiesBuilder());
+ new PointerScrollEvent().debugFillProperties(
+ new DiagnosticPropertiesBuilder(),
+ );
}
diff --git a/tests/modular/private_class_exposed_by_typedef/private_name_library.dart b/tests/modular/private_class_exposed_by_typedef/private_name_library.dart
index 74559cc..48a6768 100644
--- a/tests/modular/private_class_exposed_by_typedef/private_name_library.dart
+++ b/tests/modular/private_class_exposed_by_typedef/private_name_library.dart
@@ -12,13 +12,13 @@
/// A private class that will be exported via a public typedef.
class _PrivateClass {
int x;
- _PrivateClass(): x = privateNameSentinel;
+ _PrivateClass() : x = privateNameSentinel;
_PrivateClass.named(this.x);
}
class _PrivateClass2 {
int x;
- _PrivateClass2(): x = privateNameSentinel;
+ _PrivateClass2() : x = privateNameSentinel;
_PrivateClass2.named(this.x);
}