diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast b/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast new file mode 100644 index 000000000..374c58670 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0052_for_range_block.rast | |||
@@ -0,0 +1,81 @@ | |||
1 | SOURCE_FILE@[0; 80) | ||
2 | FN_DEF@[0; 79) | ||
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; 79) | ||
12 | BLOCK@[9; 79) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 14) "\n " | ||
15 | FOR_EXPR@[14; 77) | ||
16 | FOR_KW@[14; 17) "for" | ||
17 | WHITESPACE@[17; 18) " " | ||
18 | BIND_PAT@[18; 20) | ||
19 | NAME@[18; 20) | ||
20 | IDENT@[18; 20) "_x" | ||
21 | WHITESPACE@[20; 21) " " | ||
22 | IN_KW@[21; 23) "in" | ||
23 | WHITESPACE@[23; 24) " " | ||
24 | RANGE_EXPR@[24; 56) | ||
25 | LITERAL@[24; 25) | ||
26 | INT_NUMBER@[24; 25) "0" | ||
27 | WHITESPACE@[25; 26) " " | ||
28 | DOTDOT@[26; 28) ".." | ||
29 | WHITESPACE@[28; 29) " " | ||
30 | METHOD_CALL_EXPR@[29; 56) | ||
31 | PAREN_EXPR@[29; 43) | ||
32 | L_PAREN@[29; 30) "(" | ||
33 | RANGE_EXPR@[30; 42) | ||
34 | LITERAL@[30; 31) | ||
35 | INT_NUMBER@[30; 31) "0" | ||
36 | WHITESPACE@[31; 32) " " | ||
37 | DOTDOT@[32; 34) ".." | ||
38 | WHITESPACE@[34; 35) " " | ||
39 | BLOCK_EXPR@[35; 42) | ||
40 | BLOCK@[35; 42) | ||
41 | L_CURLY@[35; 36) "{" | ||
42 | BIN_EXPR@[36; 41) | ||
43 | LITERAL@[36; 37) | ||
44 | INT_NUMBER@[36; 37) "1" | ||
45 | WHITESPACE@[37; 38) " " | ||
46 | PLUS@[38; 39) "+" | ||
47 | WHITESPACE@[39; 40) " " | ||
48 | LITERAL@[40; 41) | ||
49 | INT_NUMBER@[40; 41) "2" | ||
50 | R_CURLY@[41; 42) "}" | ||
51 | R_PAREN@[42; 43) ")" | ||
52 | DOT@[43; 44) "." | ||
53 | NAME_REF@[44; 47) | ||
54 | IDENT@[44; 47) "sum" | ||
55 | TYPE_ARG_LIST@[47; 54) | ||
56 | COLONCOLON@[47; 49) "::" | ||
57 | L_ANGLE@[49; 50) "<" | ||
58 | TYPE_ARG@[50; 53) | ||
59 | PATH_TYPE@[50; 53) | ||
60 | PATH@[50; 53) | ||
61 | PATH_SEGMENT@[50; 53) | ||
62 | NAME_REF@[50; 53) | ||
63 | IDENT@[50; 53) "u32" | ||
64 | R_ANGLE@[53; 54) ">" | ||
65 | ARG_LIST@[54; 56) | ||
66 | L_PAREN@[54; 55) "(" | ||
67 | R_PAREN@[55; 56) ")" | ||
68 | WHITESPACE@[56; 57) " " | ||
69 | BLOCK_EXPR@[57; 77) | ||
70 | BLOCK@[57; 77) | ||
71 | L_CURLY@[57; 58) "{" | ||
72 | WHITESPACE@[58; 66) "\n " | ||
73 | EXPR_STMT@[66; 72) | ||
74 | BREAK_EXPR@[66; 71) | ||
75 | BREAK_KW@[66; 71) "break" | ||
76 | SEMI@[71; 72) ";" | ||
77 | WHITESPACE@[72; 76) "\n " | ||
78 | R_CURLY@[76; 77) "}" | ||
79 | WHITESPACE@[77; 78) "\n" | ||
80 | R_CURLY@[78; 79) "}" | ||
81 | WHITESPACE@[79; 80) "\n" | ||