diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast b/crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast new file mode 100644 index 000000000..28d1bad97 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0075_block.rast | |||
@@ -0,0 +1,90 @@ | |||
1 | SOURCE_FILE@[0; 65) | ||
2 | FN_DEF@[0; 9) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "a" | ||
7 | PARAM_LIST@[4; 6) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | R_PAREN@[5; 6) ")" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | BLOCK_EXPR@[7; 9) | ||
12 | BLOCK@[7; 9) | ||
13 | L_CURLY@[7; 8) "{" | ||
14 | R_CURLY@[8; 9) "}" | ||
15 | WHITESPACE@[9; 10) "\n" | ||
16 | FN_DEF@[10; 31) | ||
17 | FN_KW@[10; 12) "fn" | ||
18 | WHITESPACE@[12; 13) " " | ||
19 | NAME@[13; 14) | ||
20 | IDENT@[13; 14) "b" | ||
21 | PARAM_LIST@[14; 16) | ||
22 | L_PAREN@[14; 15) "(" | ||
23 | R_PAREN@[15; 16) ")" | ||
24 | WHITESPACE@[16; 17) " " | ||
25 | BLOCK_EXPR@[17; 31) | ||
26 | BLOCK@[17; 31) | ||
27 | L_CURLY@[17; 18) "{" | ||
28 | WHITESPACE@[18; 19) " " | ||
29 | LET_STMT@[19; 29) | ||
30 | LET_KW@[19; 22) "let" | ||
31 | WHITESPACE@[22; 23) " " | ||
32 | PLACEHOLDER_PAT@[23; 24) | ||
33 | UNDERSCORE@[23; 24) "_" | ||
34 | WHITESPACE@[24; 25) " " | ||
35 | EQ@[25; 26) "=" | ||
36 | WHITESPACE@[26; 27) " " | ||
37 | LITERAL@[27; 28) | ||
38 | INT_NUMBER@[27; 28) "1" | ||
39 | SEMI@[28; 29) ";" | ||
40 | WHITESPACE@[29; 30) " " | ||
41 | R_CURLY@[30; 31) "}" | ||
42 | WHITESPACE@[31; 32) "\n" | ||
43 | FN_DEF@[32; 48) | ||
44 | FN_KW@[32; 34) "fn" | ||
45 | WHITESPACE@[34; 35) " " | ||
46 | NAME@[35; 36) | ||
47 | IDENT@[35; 36) "c" | ||
48 | PARAM_LIST@[36; 38) | ||
49 | L_PAREN@[36; 37) "(" | ||
50 | R_PAREN@[37; 38) ")" | ||
51 | WHITESPACE@[38; 39) " " | ||
52 | BLOCK_EXPR@[39; 48) | ||
53 | BLOCK@[39; 48) | ||
54 | L_CURLY@[39; 40) "{" | ||
55 | WHITESPACE@[40; 41) " " | ||
56 | EXPR_STMT@[41; 43) | ||
57 | LITERAL@[41; 42) | ||
58 | INT_NUMBER@[41; 42) "1" | ||
59 | SEMI@[42; 43) ";" | ||
60 | WHITESPACE@[43; 44) " " | ||
61 | EXPR_STMT@[44; 46) | ||
62 | LITERAL@[44; 45) | ||
63 | INT_NUMBER@[44; 45) "2" | ||
64 | SEMI@[45; 46) ";" | ||
65 | WHITESPACE@[46; 47) " " | ||
66 | R_CURLY@[47; 48) "}" | ||
67 | WHITESPACE@[48; 49) "\n" | ||
68 | FN_DEF@[49; 64) | ||
69 | FN_KW@[49; 51) "fn" | ||
70 | WHITESPACE@[51; 52) " " | ||
71 | NAME@[52; 53) | ||
72 | IDENT@[52; 53) "d" | ||
73 | PARAM_LIST@[53; 55) | ||
74 | L_PAREN@[53; 54) "(" | ||
75 | R_PAREN@[54; 55) ")" | ||
76 | WHITESPACE@[55; 56) " " | ||
77 | BLOCK_EXPR@[56; 64) | ||
78 | BLOCK@[56; 64) | ||
79 | L_CURLY@[56; 57) "{" | ||
80 | WHITESPACE@[57; 58) " " | ||
81 | EXPR_STMT@[58; 60) | ||
82 | LITERAL@[58; 59) | ||
83 | INT_NUMBER@[58; 59) "1" | ||
84 | SEMI@[59; 60) ";" | ||
85 | WHITESPACE@[60; 61) " " | ||
86 | LITERAL@[61; 62) | ||
87 | INT_NUMBER@[61; 62) "2" | ||
88 | WHITESPACE@[62; 63) " " | ||
89 | R_CURLY@[63; 64) "}" | ||
90 | WHITESPACE@[64; 65) "\n" | ||