diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
---|---|---|
committer | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-07-24 10:51:25 +0100 |
commit | 0194adb651257b69fdf04423b22c69db09fc489c (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt | |
parent | bf3030404ef8a161334326bad706f60ee8838f63 (diff) | |
parent | 459241f272748ff2e57b2c7e84f5a04f78d67edb (diff) |
Merge #1585
1585: move syntax tests to unit tests r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt b/crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt new file mode 100644 index 000000000..71c014028 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt | |||
@@ -0,0 +1,20 @@ | |||
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@[13; 15) | ||
15 | L_CURLY@[13; 14) "{" | ||
16 | R_CURLY@[14; 15) "}" | ||
17 | WHITESPACE@[15; 16) "\n" | ||
18 | error 2: expected a name | ||
19 | error 2: expected function arguments | ||
20 | error 2: expected a block | ||