aboutsummaryrefslogtreecommitdiff
path: root/tests/data/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-07 13:01:30 +0000
committerAleksey Kladov <[email protected]>2018-01-07 13:01:30 +0000
commitb5034410c8e5aabf809d2665e38017ef79d05601 (patch)
treee38af66118447b1834acf6d25630c294ea622176 /tests/data/parser
parent7c6f0f9128665c1a605caaa552347b936578f952 (diff)
G: function item
Diffstat (limited to 'tests/data/parser')
-rw-r--r--tests/data/parser/ok/0005_fn_item.rs2
-rw-r--r--tests/data/parser/ok/0005_fn_item.txt12
2 files changed, 14 insertions, 0 deletions
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 @@
1fn foo() {
2}
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 @@
1FILE@[0; 13)
2 FN_ITEM@[0; 13)
3 FN_KW@[0; 2)
4 WHITESPACE@[2; 3)
5 IDENT@[3; 6)
6 L_PAREN@[6; 7)
7 R_PAREN@[7; 8)
8 WHITESPACE@[8; 9)
9 L_CURLY@[9; 10)
10 WHITESPACE@[10; 11)
11 R_CURLY@[11; 12)
12 WHITESPACE@[12; 13)