diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast b/crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast new file mode 100644 index 000000000..c11dc23f5 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0020_fn_recover.rast | |||
@@ -0,0 +1,21 @@ | |||
1 | SOURCE_FILE@[0; 16) | ||
2 | FN_DEF@[0; 2) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 4) "\n\n" | ||
5 | FN_DEF@[4; 15) | ||
6 | FN_KW@[4; 6) "fn" | ||
7 | WHITESPACE@[6; 7) " " | ||
8 | NAME@[7; 10) | ||
9 | IDENT@[7; 10) "foo" | ||
10 | PARAM_LIST@[10; 12) | ||
11 | L_PAREN@[10; 11) "(" | ||
12 | R_PAREN@[11; 12) ")" | ||
13 | WHITESPACE@[12; 13) " " | ||
14 | BLOCK_EXPR@[13; 15) | ||
15 | BLOCK@[13; 15) | ||
16 | L_CURLY@[13; 14) "{" | ||
17 | R_CURLY@[14; 15) "}" | ||
18 | WHITESPACE@[15; 16) "\n" | ||
19 | error [2; 2): expected a name | ||
20 | error [2; 2): expected function arguments | ||
21 | error [2; 2): expected a block | ||