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