From b5034410c8e5aabf809d2665e38017ef79d05601 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 7 Jan 2018 16:01:30 +0300 Subject: G: function item --- tests/data/parser/ok/0005_fn_item.rs | 2 ++ tests/data/parser/ok/0005_fn_item.txt | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/data/parser/ok/0005_fn_item.rs create mode 100644 tests/data/parser/ok/0005_fn_item.txt (limited to 'tests/data/parser/ok') diff --git a/tests/data/parser/ok/0005_fn_item.rs b/tests/data/parser/ok/0005_fn_item.rs new file mode 100644 index 000000000..03210551c --- /dev/null +++ b/tests/data/parser/ok/0005_fn_item.rs @@ -0,0 +1,2 @@ +fn foo() { +} diff --git a/tests/data/parser/ok/0005_fn_item.txt b/tests/data/parser/ok/0005_fn_item.txt new file mode 100644 index 000000000..e37129ff1 --- /dev/null +++ b/tests/data/parser/ok/0005_fn_item.txt @@ -0,0 +1,12 @@ +FILE@[0; 13) + FN_ITEM@[0; 13) + FN_KW@[0; 2) + WHITESPACE@[2; 3) + IDENT@[3; 6) + L_PAREN@[6; 7) + R_PAREN@[7; 8) + WHITESPACE@[8; 9) + L_CURLY@[9; 10) + WHITESPACE@[10; 11) + R_CURLY@[11; 12) + WHITESPACE@[12; 13) -- cgit v1.2.3