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 --- .../test_data/parser/ok/0024_const_item.rast | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 crates/syntax/test_data/parser/ok/0024_const_item.rast (limited to 'crates/syntax/test_data/parser/ok/0024_const_item.rast') diff --git a/crates/syntax/test_data/parser/ok/0024_const_item.rast b/crates/syntax/test_data/parser/ok/0024_const_item.rast new file mode 100644 index 000000000..dd1b9c9a0 --- /dev/null +++ b/crates/syntax/test_data/parser/ok/0024_const_item.rast @@ -0,0 +1,59 @@ +SOURCE_FILE@0..64 + CONST@0..17 + CONST_KW@0..5 "const" + WHITESPACE@5..6 " " + UNDERSCORE@6..7 "_" + COLON@7..8 ":" + WHITESPACE@8..9 " " + PATH_TYPE@9..12 + PATH@9..12 + PATH_SEGMENT@9..12 + NAME_REF@9..12 + IDENT@9..12 "u32" + WHITESPACE@12..13 " " + EQ@13..14 "=" + WHITESPACE@14..15 " " + LITERAL@15..16 + INT_NUMBER@15..16 "0" + SEMICOLON@16..17 ";" + WHITESPACE@17..18 "\n" + CONST@18..38 + CONST_KW@18..23 "const" + WHITESPACE@23..24 " " + NAME@24..27 + IDENT@24..27 "FOO" + COLON@27..28 ":" + WHITESPACE@28..29 " " + PATH_TYPE@29..32 + PATH@29..32 + PATH_SEGMENT@29..32 + NAME_REF@29..32 + IDENT@29..32 "u32" + WHITESPACE@32..33 " " + EQ@33..34 "=" + WHITESPACE@34..35 " " + LITERAL@35..37 + INT_NUMBER@35..37 "92" + SEMICOLON@37..38 ";" + WHITESPACE@38..39 "\n" + CONST@39..63 + CONST_KW@39..44 "const" + WHITESPACE@44..45 " " + MUT_KW@45..48 "mut" + WHITESPACE@48..49 " " + NAME@49..52 + IDENT@49..52 "BAR" + COLON@52..53 ":" + WHITESPACE@53..54 " " + PATH_TYPE@54..57 + PATH@54..57 + PATH_SEGMENT@54..57 + NAME_REF@54..57 + IDENT@54..57 "u32" + WHITESPACE@57..58 " " + EQ@58..59 "=" + WHITESPACE@59..60 " " + LITERAL@60..62 + INT_NUMBER@60..62 "62" + SEMICOLON@62..63 ";" + WHITESPACE@63..64 "\n" -- cgit v1.2.3