diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast b/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast new file mode 100644 index 000000000..f5a7a1a5a --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0025_extern_fn_in_block.rast | |||
@@ -0,0 +1,33 @@ | |||
1 | SOURCE_FILE@[0; 35) | ||
2 | FN_DEF@[0; 34) | ||
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; 34) | ||
12 | BLOCK@[10; 34) | ||
13 | L_CURLY@[10; 11) "{" | ||
14 | WHITESPACE@[11; 16) "\n " | ||
15 | FN_DEF@[16; 32) | ||
16 | ABI@[16; 22) | ||
17 | EXTERN_KW@[16; 22) "extern" | ||
18 | WHITESPACE@[22; 23) " " | ||
19 | FN_KW@[23; 25) "fn" | ||
20 | WHITESPACE@[25; 26) " " | ||
21 | NAME@[26; 27) | ||
22 | IDENT@[26; 27) "f" | ||
23 | PARAM_LIST@[27; 29) | ||
24 | L_PAREN@[27; 28) "(" | ||
25 | R_PAREN@[28; 29) ")" | ||
26 | WHITESPACE@[29; 30) " " | ||
27 | BLOCK_EXPR@[30; 32) | ||
28 | BLOCK@[30; 32) | ||
29 | L_CURLY@[30; 31) "{" | ||
30 | R_CURLY@[31; 32) "}" | ||
31 | WHITESPACE@[32; 33) "\n" | ||
32 | R_CURLY@[33; 34) "}" | ||
33 | WHITESPACE@[34; 35) "\n" | ||