From 9a8e9bc4c6339051ef260f7794603481b6ff0bf2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 11 Jan 2018 23:01:12 +0300 Subject: G: item outer attributes --- tests/data/parser/ok/0011_outer_attribute.rs | 3 +++ tests/data/parser/ok/0011_outer_attribute.txt | 29 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tests/data/parser/ok/0011_outer_attribute.rs create mode 100644 tests/data/parser/ok/0011_outer_attribute.txt (limited to 'tests/data') diff --git a/tests/data/parser/ok/0011_outer_attribute.rs b/tests/data/parser/ok/0011_outer_attribute.rs new file mode 100644 index 000000000..8b80c0d90 --- /dev/null +++ b/tests/data/parser/ok/0011_outer_attribute.rs @@ -0,0 +1,3 @@ +#[cfg(test)] +#[ignore] +fn foo() {} diff --git a/tests/data/parser/ok/0011_outer_attribute.txt b/tests/data/parser/ok/0011_outer_attribute.txt new file mode 100644 index 000000000..a790f4095 --- /dev/null +++ b/tests/data/parser/ok/0011_outer_attribute.txt @@ -0,0 +1,29 @@ +FILE@[0; 35) + ATTR@[0; 13) + POUND@[0; 1) + L_BRACK@[1; 2) + META_ITEM@[2; 11) + IDENT@[2; 5) + L_PAREN@[5; 6) + META_ITEM@[6; 10) + IDENT@[6; 10) + R_PAREN@[10; 11) + R_BRACK@[11; 12) + WHITESPACE@[12; 13) + ATTR@[13; 23) + POUND@[13; 14) + L_BRACK@[14; 15) + META_ITEM@[15; 21) + IDENT@[15; 21) + R_BRACK@[21; 22) + WHITESPACE@[22; 23) + FN_ITEM@[23; 35) + FN_KW@[23; 25) + WHITESPACE@[25; 26) + IDENT@[26; 29) + L_PAREN@[29; 30) + R_PAREN@[30; 31) + WHITESPACE@[31; 32) + L_CURLY@[32; 33) + R_CURLY@[33; 34) + WHITESPACE@[34; 35) -- cgit v1.2.3