aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-24 10:38:21 +0100
committerAleksey Kladov <[email protected]>2019-07-24 10:49:19 +0100
commit459241f272748ff2e57b2c7e84f5a04f78d67edb (patch)
tree2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/err/0020_fn_recover.txt
parent4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff)
move syntax tests to unit tests
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.txt20
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 @@
1SOURCE_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"
18error 2: expected a name
19error 2: expected function arguments
20error 2: expected a block