From 5ea7e5fb7ab9f9ed762c8b5220ba01a29796a871 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 9 Jan 2018 23:32:18 +0300 Subject: G: simplest use items --- tests/data/parser/ok/0009_use_item.rs | 2 ++ tests/data/parser/ok/0009_use_item.txt | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tests/data/parser/ok/0009_use_item.rs create mode 100644 tests/data/parser/ok/0009_use_item.txt (limited to 'tests/data') diff --git a/tests/data/parser/ok/0009_use_item.rs b/tests/data/parser/ok/0009_use_item.rs new file mode 100644 index 000000000..05a6aff83 --- /dev/null +++ b/tests/data/parser/ok/0009_use_item.rs @@ -0,0 +1,2 @@ +use foo; +use ::bar; \ No newline at end of file diff --git a/tests/data/parser/ok/0009_use_item.txt b/tests/data/parser/ok/0009_use_item.txt new file mode 100644 index 000000000..f0b2981f2 --- /dev/null +++ b/tests/data/parser/ok/0009_use_item.txt @@ -0,0 +1,17 @@ +FILE@[0; 19) + USE_ITEM@[0; 9) + USE_KW@[0; 3) + PATH@[3; 7) + PATH_SEGMENT@[3; 7) + WHITESPACE@[3; 4) + IDENT@[4; 7) + SEMI@[7; 8) + WHITESPACE@[8; 9) + USE_ITEM@[9; 19) + USE_KW@[9; 12) + PATH@[12; 18) + WHITESPACE@[12; 13) + COLONCOLON@[13; 15) + PATH_SEGMENT@[15; 18) + IDENT@[15; 18) + SEMI@[18; 19) -- cgit v1.2.3