diff options
author | Aleksey Kladov <[email protected]> | 2018-01-07 13:01:30 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-07 13:01:30 +0000 |
commit | b5034410c8e5aabf809d2665e38017ef79d05601 (patch) | |
tree | e38af66118447b1834acf6d25630c294ea622176 /tests/data/parser | |
parent | 7c6f0f9128665c1a605caaa552347b936578f952 (diff) |
G: function item
Diffstat (limited to 'tests/data/parser')
-rw-r--r-- | tests/data/parser/ok/0005_fn_item.rs | 2 | ||||
-rw-r--r-- | tests/data/parser/ok/0005_fn_item.txt | 12 |
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 @@ | |||
1 | fn 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 @@ | |||
1 | FILE@[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) | ||