Skip to content

Commit 81f7324

Browse files
munificentCommit Queue
authored andcommitted
Format tests/language/l*.
Change-Id: I9551c5e26f513e92325367ff98a6076614093667 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407680 Reviewed-by: Lasse Nielsen <[email protected]> Auto-Submit: Bob Nystrom <[email protected]> Commit-Queue: Bob Nystrom <[email protected]>
1 parent 9e3daae commit 81f7324

Some content is hidden

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

45 files changed

+167
-640
lines changed

tests/language/label/label3_runtime_1_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
// BSD-style license that can be found in the LICENSE file.
77

88
main() {
9-
L: while (false) {
9+
L:
10+
while (false) {
1011
if (true) break L;
1112
}
1213
// Illegal: L is out of scope.
13-
1414
}

tests/language/label/label3_runtime_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
// BSD-style license that can be found in the LICENSE file.
77

88
main() {
9-
L: while (false) {
10-
11-
}
9+
L:
10+
while (false) {}
1211
// Illegal: L is out of scope.
13-
1412
}

tests/language/label/label5_runtime_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ main() {
99
var L = 33;
1010
while (false) {
1111
// Illegal: L is not a label.
12-
1312
}
1413
}

tests/language/label/label6_runtime_1_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ main() {
1212

1313
void innerfunc() {
1414
// Illegal: jump target is outside of function
15-
1615
}
1716

1817
innerfunc();

tests/language/label/label6_runtime_2_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
main() {
99
L:
1010
while (false) {
11-
1211
break L;
1312
void innerfunc() {
1413
// Illegal: jump target is outside of function
15-
1614
}
1715

1816
innerfunc();

tests/language/label/label6_runtime_test.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
main() {
99
L:
1010
while (false) {
11-
12-
1311
void innerfunc() {
1412
// Illegal: jump target is outside of function
15-
1613
}
1714

1815
innerfunc();

tests/language/label/label8_runtime_test.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88
main() {
99
int i = 0;
1010
// Grammar doesn't allow label on block for switch statement.
11-
switch(i)
12-
13-
{
11+
switch (i) {
1412
case 111:
15-
while (false) {
16-
17-
}
13+
while (false) {}
1814
i++;
1915
}
2016
}

tests/language/label/label_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ class Helper {
302302
}
303303
Expect.equals(111, i);
304304

305-
if (false) {} else
305+
if (false) {
306+
} else
306307
L:
307308
{
308309
while (doAgain()) {

tests/language/lazy/static7_test.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
import "package:expect/expect.dart";
66

77
var sideEffect = 0;
8-
int x = (() {
9-
sideEffect++;
10-
return 499;
11-
})();
8+
int x =
9+
(() {
10+
sideEffect++;
11+
return 499;
12+
})();
1213

1314
main() {
1415
if (new DateTime.now().day >= -1) {

tests/language/least_upper_bound/expansive_runtime_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ void testC1(bool z, C1<int> a, N<C1<String>> b) {
5353
// Is least upper bound N<N<...>> ?
5454

5555
// Is least upper bound N<C1<...>> ?
56-
5756
}
5857
}
5958

@@ -94,7 +93,6 @@ void testC2(bool z, C2<int> a, N<C2<String>> b) {
9493
// Is least upper bound N<N<...>> ?
9594

9695
// Is least upper bound N<C2<...>> ?
97-
9896
}
9997
}
10098

0 commit comments

Comments
 (0)