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 --- .../parser/err/0005_attribute_recover.rast | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 crates/syntax/test_data/parser/err/0005_attribute_recover.rast (limited to 'crates/syntax/test_data/parser/err/0005_attribute_recover.rast') diff --git a/crates/syntax/test_data/parser/err/0005_attribute_recover.rast b/crates/syntax/test_data/parser/err/0005_attribute_recover.rast new file mode 100644 index 000000000..4845a6563 --- /dev/null +++ b/crates/syntax/test_data/parser/err/0005_attribute_recover.rast @@ -0,0 +1,59 @@ +SOURCE_FILE@0..54 + FN@0..31 + ATTR@0..18 + POUND@0..1 "#" + L_BRACK@1..2 "[" + PATH@2..5 + PATH_SEGMENT@2..5 + NAME_REF@2..5 + IDENT@2..5 "foo" + TOKEN_TREE@5..17 + L_PAREN@5..6 "(" + IDENT@6..9 "foo" + COMMA@9..10 "," + WHITESPACE@10..11 " " + PLUS@11..12 "+" + COMMA@12..13 "," + WHITESPACE@13..14 " " + INT_NUMBER@14..16 "92" + R_PAREN@16..17 ")" + R_BRACK@17..18 "]" + WHITESPACE@18..19 "\n" + FN_KW@19..21 "fn" + WHITESPACE@21..22 " " + NAME@22..25 + IDENT@22..25 "foo" + PARAM_LIST@25..27 + L_PAREN@25..26 "(" + R_PAREN@26..27 ")" + WHITESPACE@27..28 " " + BLOCK_EXPR@28..31 + L_CURLY@28..29 "{" + WHITESPACE@29..30 "\n" + R_CURLY@30..31 "}" + WHITESPACE@31..34 "\n\n\n" + ATTR@34..53 + POUND@34..35 "#" + L_BRACK@35..36 "[" + PATH@36..39 + PATH_SEGMENT@36..39 + NAME_REF@36..39 + IDENT@36..39 "foo" + TOKEN_TREE@39..53 + L_PAREN@39..40 "(" + WHITESPACE@40..41 "\n" + FN_KW@41..43 "fn" + WHITESPACE@43..44 " " + IDENT@44..47 "foo" + TOKEN_TREE@47..49 + L_PAREN@47..48 "(" + R_PAREN@48..49 ")" + WHITESPACE@49..50 " " + TOKEN_TREE@50..53 + L_CURLY@50..51 "{" + WHITESPACE@51..52 "\n" + R_CURLY@52..53 "}" + WHITESPACE@53..54 "\n" +error 53..53: expected R_PAREN +error 53..53: expected `]` +error 53..53: expected an item -- cgit v1.2.3