Skip to content

Commit 7134a45

Browse files
munificentCommit Queue
authored andcommitted
Format tests/language/i*.
A lot of files in this one, but nothing interesting in any of the tests. Change-Id: I69c705bfd2c2b2f9711b393e4ac78c357336e1a7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/407660 Commit-Queue: Lasse Nielsen <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]> Auto-Submit: Bob Nystrom <[email protected]>
1 parent 43e190b commit 7134a45

File tree

211 files changed

+1905
-2677
lines changed

Some content is hidden

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

211 files changed

+1905
-2677
lines changed

tests/language/identifier/built_in_illegal_runtime_test.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,4 @@
88

99
// Pseudo keywords are not allowed to be used as class names.
1010

11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
2811
main() {}

tests/language/identifier/built_in_illegal_test.dart

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,71 +4,87 @@
44
// Check that we cannot use a pseudo keyword at the class level code.
55

66
// Pseudo keywords are not allowed to be used as class names.
7-
class abstract { }
7+
class abstract {}
88
// ^^^^^^^^
99
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
1010
// [cfe] Can't use 'abstract' as a name here.
11-
class as { }
11+
12+
class as {}
1213
// ^^
1314
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
1415
// [cfe] Can't use 'as' as a name here.
15-
class dynamic { }
16+
17+
class dynamic {}
1618
// ^^^^^^^
1719
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
1820
// [cfe] Can't use 'dynamic' as a name here.
19-
class export { }
21+
22+
class export {}
2023
// ^^^^^^
2124
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
2225
// [cfe] Can't use 'export' as a name here.
23-
class external { }
26+
27+
class external {}
2428
// ^^^^^^^^
2529
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
2630
// [cfe] Can't use 'external' as a name here.
27-
class factory { }
31+
32+
class factory {}
2833
// ^^^^^^^
2934
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
3035
// [cfe] Can't use 'factory' as a name here.
31-
class get { }
36+
37+
class get {}
3238
// ^^^
3339
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
3440
// [cfe] Can't use 'get' as a name here.
35-
class interface { }
41+
42+
class interface {}
3643
// ^^^^^^^^^
3744
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
3845
// [cfe] Can't use 'interface' as a name here.
39-
class implements { }
46+
47+
class implements {}
4048
// ^^^^^^^^^^
4149
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
4250
// [cfe] Can't use 'implements' as a name here.
43-
class import { }
51+
52+
class import {}
4453
// ^^^^^^
4554
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
4655
// [cfe] Can't use 'import' as a name here.
47-
class mixin { }
56+
57+
class mixin {}
4858
// ^^^^^
4959
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
5060
// [cfe] Can't use 'mixin' as a name here.
51-
class library { }
61+
62+
class library {}
5263
// ^^^^^^^
5364
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
5465
// [cfe] Can't use 'library' as a name here.
55-
class operator { }
66+
67+
class operator {}
5668
// ^^^^^^^^
5769
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
5870
// [cfe] Can't use 'operator' as a name here.
59-
class part { }
71+
72+
class part {}
6073
// ^^^^
6174
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
6275
// [cfe] Can't use 'part' as a name here.
63-
class set { }
76+
77+
class set {}
6478
// ^^^
6579
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
6680
// [cfe] Can't use 'set' as a name here.
67-
class static { }
81+
82+
class static {}
6883
// ^^^^^^
6984
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
7085
// [cfe] Can't use 'static' as a name here.
71-
class typedef { }
86+
87+
class typedef {}
7288
// ^^^^^^^
7389
// [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION
7490
// [cfe] Can't use 'typedef' as a name here.

tests/language/identifier/known_prefix_error_runtime_test.dart

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -24,58 +24,4 @@ import 'built_in_prefix_library_show.dart' as show;
2424
import 'built_in_prefix_library_sync.dart' as sync;
2525
import 'built_in_prefix_library_yield.dart' as yield;
2626

27-
28-
29-
30-
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
main() {
55-
56-
57-
58-
59-
60-
61-
62-
63-
64-
65-
66-
67-
68-
69-
70-
71-
72-
73-
74-
75-
76-
77-
78-
79-
80-
81-
}
27+
main() {}

tests/language/identifier/known_prefix_error_test.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,35 +26,35 @@ import 'built_in_prefix_library_sync.dart' as sync;
2626
import 'built_in_prefix_library_yield.dart' as yield;
2727

2828
async<dynamic> _async = new async.A();
29-
// [error line 28, column 1, length 5]
29+
// [error column 1, length 5]
3030
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
3131
// [cfe] 'async' isn't a type.
3232
await<dynamic> _await = new await.A();
33-
// [error line 32, column 1, length 5]
33+
// [error column 1, length 5]
3434
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
3535
// [cfe] 'await' isn't a type.
3636
hide<dynamic> _hide = new hide.A();
37-
// [error line 36, column 1, length 4]
37+
// [error column 1, length 4]
3838
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
3939
// [cfe] 'hide' isn't a type.
4040
of<dynamic> _of = new of.A();
41-
// [error line 40, column 1, length 2]
41+
// [error column 1, length 2]
4242
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
4343
// [cfe] 'of' isn't a type.
4444
on<dynamic> _on = new on.A();
45-
// [error line 44, column 1, length 2]
45+
// [error column 1, length 2]
4646
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
4747
// [cfe] 'on' isn't a type.
4848
show<dynamic> _show = new show.A();
49-
// [error line 48, column 1, length 4]
49+
// [error column 1, length 4]
5050
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
5151
// [cfe] 'show' isn't a type.
5252
sync<dynamic> _sync = new sync.A();
53-
// [error line 52, column 1, length 4]
53+
// [error column 1, length 4]
5454
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
5555
// [cfe] 'sync' isn't a type.
5656
yield<dynamic> _yield = new yield.A();
57-
// [error line 56, column 1, length 5]
57+
// [error column 1, length 5]
5858
// [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE
5959
// [cfe] 'yield' isn't a type.
6060

tests/language/identifier/known_usage_error_runtime_test.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ Future<void> f1() async {
2626
// Allowed:
2727
int async = 1;
2828

29-
30-
3129
Stream<int> s = new Stream<int>.fromFuture(new Future<int>.value(1));
3230
await for (int i in s) {
3331
return;
@@ -37,8 +35,6 @@ Future<void> f1() async {
3735
Stream<int> f2() async* {
3836
int async = 1;
3937

40-
41-
4238
Stream<int> s = new Stream<int>.fromFuture(new Future<int>.value(1));
4339
await for (var i in s) {
4440
yield i + 1;
@@ -48,12 +44,7 @@ Stream<int> f2() async* {
4844
Iterable<int> f3() sync* {
4945
int async = 1;
5046

51-
52-
5347
Stream<int> s = new Stream<int>.fromFuture(new Future<int>.value(1));
54-
55-
56-
5748
}
5849

5950
void f4() {
@@ -62,10 +53,6 @@ void f4() {
6253
int yield = 1;
6354

6455
Stream s = new Stream<int>.fromFuture(new Future<int>.value(1));
65-
66-
67-
68-
6956
}
7057

7158
main() {

0 commit comments

Comments
 (0)