From a1c187eef3ba08076aedb5154929f7eda8d1b424 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 12 Aug 2020 18:26:51 +0200 Subject: Rename ra_syntax -> syntax --- .../syntax/test_data/parser/err/0020_fn_recover.rast | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 crates/syntax/test_data/parser/err/0020_fn_recover.rast (limited to 'crates/syntax/test_data/parser/err/0020_fn_recover.rast') diff --git a/crates/syntax/test_data/parser/err/0020_fn_recover.rast b/crates/syntax/test_data/parser/err/0020_fn_recover.rast new file mode 100644 index 000000000..6f6feba5a --- /dev/null +++ b/crates/syntax/test_data/parser/err/0020_fn_recover.rast @@ -0,0 +1,20 @@ +SOURCE_FILE@0..16 + FN@0..2 + FN_KW@0..2 "fn" + WHITESPACE@2..4 "\n\n" + FN@4..15 + FN_KW@4..6 "fn" + WHITESPACE@6..7 " " + NAME@7..10 + IDENT@7..10 "foo" + PARAM_LIST@10..12 + L_PAREN@10..11 "(" + R_PAREN@11..12 ")" + WHITESPACE@12..13 " " + BLOCK_EXPR@13..15 + L_CURLY@13..14 "{" + R_CURLY@14..15 "}" + WHITESPACE@15..16 "\n" +error 2..2: expected a name +error 2..2: expected function arguments +error 2..2: expected a block -- cgit v1.2.3