diff options
Diffstat (limited to 'crates/libsyntax2/tests/data/parser/inline')
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0107_label.rs | 5 | ||||
-rw-r--r-- | crates/libsyntax2/tests/data/parser/inline/0107_label.txt | 63 |
2 files changed, 68 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/data/parser/inline/0107_label.rs b/crates/libsyntax2/tests/data/parser/inline/0107_label.rs new file mode 100644 index 000000000..48e83f263 --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0107_label.rs | |||
@@ -0,0 +1,5 @@ | |||
1 | fn foo() { | ||
2 | 'a: loop {} | ||
3 | 'b: while true {} | ||
4 | 'c: for x in () {} | ||
5 | } | ||
diff --git a/crates/libsyntax2/tests/data/parser/inline/0107_label.txt b/crates/libsyntax2/tests/data/parser/inline/0107_label.txt new file mode 100644 index 000000000..66ba792b8 --- /dev/null +++ b/crates/libsyntax2/tests/data/parser/inline/0107_label.txt | |||
@@ -0,0 +1,63 @@ | |||
1 | FILE@[0; 74) | ||
2 | FN_DEF@[0; 73) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK_EXPR@[9; 73) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 15) | ||
14 | EXPR_STMT@[15; 26) | ||
15 | LOOP_EXPR@[15; 26) | ||
16 | LABEL@[15; 18) | ||
17 | LIFETIME@[15; 17) "'a" | ||
18 | COLON@[17; 18) | ||
19 | WHITESPACE@[18; 19) | ||
20 | LOOP_KW@[19; 23) | ||
21 | WHITESPACE@[23; 24) | ||
22 | BLOCK_EXPR@[24; 26) | ||
23 | L_CURLY@[24; 25) | ||
24 | R_CURLY@[25; 26) | ||
25 | WHITESPACE@[26; 31) | ||
26 | EXPR_STMT@[31; 48) | ||
27 | WHILE_EXPR@[31; 48) | ||
28 | LABEL@[31; 34) | ||
29 | LIFETIME@[31; 33) "'b" | ||
30 | COLON@[33; 34) | ||
31 | WHITESPACE@[34; 35) | ||
32 | WHILE_KW@[35; 40) | ||
33 | WHITESPACE@[40; 41) | ||
34 | LITERAL@[41; 45) | ||
35 | TRUE_KW@[41; 45) | ||
36 | WHITESPACE@[45; 46) | ||
37 | BLOCK_EXPR@[46; 48) | ||
38 | L_CURLY@[46; 47) | ||
39 | R_CURLY@[47; 48) | ||
40 | WHITESPACE@[48; 53) | ||
41 | FOR_EXPR@[53; 71) | ||
42 | LABEL@[53; 56) | ||
43 | LIFETIME@[53; 55) "'c" | ||
44 | COLON@[55; 56) | ||
45 | WHITESPACE@[56; 57) | ||
46 | FOR_KW@[57; 60) | ||
47 | WHITESPACE@[60; 61) | ||
48 | BIND_PAT@[61; 62) | ||
49 | NAME@[61; 62) | ||
50 | IDENT@[61; 62) "x" | ||
51 | WHITESPACE@[62; 63) | ||
52 | IN_KW@[63; 65) | ||
53 | WHITESPACE@[65; 66) | ||
54 | TUPLE_EXPR@[66; 68) | ||
55 | L_PAREN@[66; 67) | ||
56 | R_PAREN@[67; 68) | ||
57 | WHITESPACE@[68; 69) | ||
58 | BLOCK_EXPR@[69; 71) | ||
59 | L_CURLY@[69; 70) | ||
60 | R_CURLY@[70; 71) | ||
61 | WHITESPACE@[71; 72) | ||
62 | R_CURLY@[72; 73) | ||
63 | WHITESPACE@[73; 74) | ||