diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast b/crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast new file mode 100644 index 000000000..f9b1dcf1a --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0026_const_fn_in_block.rast | |||
@@ -0,0 +1,32 @@ | |||
1 | SOURCE_FILE@[0; 34) | ||
2 | FN_DEF@[0; 33) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK_EXPR@[10; 33) | ||
12 | BLOCK@[10; 33) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | FN_DEF@[16; 31) | ||
16 | CONST_KW@[16; 21) "const" | ||
17 | WHITESPACE@[21; 22) " " | ||
18 | FN_KW@[22; 24) "fn" | ||
19 | WHITESPACE@[24; 25) " " | ||
20 | NAME@[25; 26) | ||
21 | IDENT@[25; 26) "f" | ||
22 | PARAM_LIST@[26; 28) | ||
23 | L_PAREN@[26; 27) "(" | ||
24 | R_PAREN@[27; 28) ")" | ||
25 | WHITESPACE@[28; 29) " " | ||
26 | BLOCK_EXPR@[29; 31) | ||
27 | BLOCK@[29; 31) | ||
28 | L_CURLY@[29; 30) "{" | ||
29 | R_CURLY@[30; 31) "}" | ||
30 | WHITESPACE@[31; 32) "\n" | ||
31 | R_CURLY@[32; 33) "}" | ||
32 | WHITESPACE@[33; 34) "\n" | ||