diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast b/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast new file mode 100644 index 000000000..9fb7b70a0 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0027_unsafe_fn_in_block.rast | |||
@@ -0,0 +1,43 @@ | |||
1 | SOURCE_FILE@[0; 53) | ||
2 | FN_DEF@[0; 52) | ||
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; 52) | ||
12 | BLOCK@[10; 52) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | FN_DEF@[16; 32) | ||
16 | UNSAFE_KW@[16; 22) "unsafe" | ||
17 | WHITESPACE@[22; 23) " " | ||
18 | FN_KW@[23; 25) "fn" | ||
19 | WHITESPACE@[25; 26) " " | ||
20 | NAME@[26; 27) | ||
21 | IDENT@[26; 27) "f" | ||
22 | PARAM_LIST@[27; 29) | ||
23 | L_PAREN@[27; 28) "(" | ||
24 | R_PAREN@[28; 29) ")" | ||
25 | WHITESPACE@[29; 30) " " | ||
26 | BLOCK_EXPR@[30; 32) | ||
27 | BLOCK@[30; 32) | ||
28 | L_CURLY@[30; 31) "{" | ||
29 | R_CURLY@[31; 32) "}" | ||
30 | WHITESPACE@[32; 37) "\n " | ||
31 | BLOCK_EXPR@[37; 50) | ||
32 | UNSAFE_KW@[37; 43) "unsafe" | ||
33 | WHITESPACE@[43; 44) " " | ||
34 | BLOCK@[44; 50) | ||
35 | L_CURLY@[44; 45) "{" | ||
36 | WHITESPACE@[45; 46) " " | ||
37 | LITERAL@[46; 48) | ||
38 | INT_NUMBER@[46; 48) "92" | ||
39 | WHITESPACE@[48; 49) " " | ||
40 | R_CURLY@[49; 50) "}" | ||
41 | WHITESPACE@[50; 51) "\n" | ||
42 | R_CURLY@[51; 52) "}" | ||
43 | WHITESPACE@[52; 53) "\n" | ||