diff options
Diffstat (limited to 'crates/syntax/test_data/parser/inline')
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rast | 54 | ||||
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rs | 2 |
2 files changed, 56 insertions, 0 deletions
diff --git a/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rast b/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rast new file mode 100644 index 000000000..c204f0e2d --- /dev/null +++ b/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rast | |||
@@ -0,0 +1,54 @@ | |||
1 | SOURCE_FILE@0..53 | ||
2 | STRUCT@0..25 | ||
3 | STRUCT_KW@0..6 "struct" | ||
4 | WHITESPACE@6..7 " " | ||
5 | NAME@7..8 | ||
6 | IDENT@7..8 "B" | ||
7 | TUPLE_FIELD_LIST@8..24 | ||
8 | L_PAREN@8..9 "(" | ||
9 | TUPLE_FIELD@9..23 | ||
10 | VISIBILITY@9..12 | ||
11 | PUB_KW@9..12 "pub" | ||
12 | WHITESPACE@12..13 " " | ||
13 | PAREN_TYPE@13..23 | ||
14 | L_PAREN@13..14 "(" | ||
15 | PATH_TYPE@14..22 | ||
16 | PATH@14..22 | ||
17 | PATH@14..19 | ||
18 | PATH_SEGMENT@14..19 | ||
19 | SUPER_KW@14..19 "super" | ||
20 | COLON2@19..21 "::" | ||
21 | PATH_SEGMENT@21..22 | ||
22 | NAME_REF@21..22 | ||
23 | IDENT@21..22 "A" | ||
24 | R_PAREN@22..23 ")" | ||
25 | R_PAREN@23..24 ")" | ||
26 | SEMICOLON@24..25 ";" | ||
27 | WHITESPACE@25..26 "\n" | ||
28 | STRUCT@26..52 | ||
29 | STRUCT_KW@26..32 "struct" | ||
30 | WHITESPACE@32..33 " " | ||
31 | NAME@33..34 | ||
32 | IDENT@33..34 "B" | ||
33 | TUPLE_FIELD_LIST@34..51 | ||
34 | L_PAREN@34..35 "(" | ||
35 | TUPLE_FIELD@35..50 | ||
36 | VISIBILITY@35..38 | ||
37 | PUB_KW@35..38 "pub" | ||
38 | WHITESPACE@38..39 " " | ||
39 | TUPLE_TYPE@39..50 | ||
40 | L_PAREN@39..40 "(" | ||
41 | PATH_TYPE@40..48 | ||
42 | PATH@40..48 | ||
43 | PATH@40..45 | ||
44 | PATH_SEGMENT@40..45 | ||
45 | CRATE_KW@40..45 "crate" | ||
46 | COLON2@45..47 "::" | ||
47 | PATH_SEGMENT@47..48 | ||
48 | NAME_REF@47..48 | ||
49 | IDENT@47..48 "A" | ||
50 | COMMA@48..49 "," | ||
51 | R_PAREN@49..50 ")" | ||
52 | R_PAREN@50..51 ")" | ||
53 | SEMICOLON@51..52 ";" | ||
54 | WHITESPACE@52..53 "\n" | ||
diff --git a/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rs b/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rs new file mode 100644 index 000000000..d4c163822 --- /dev/null +++ b/crates/syntax/test_data/parser/inline/ok/0153_pub_parens_typepath.rs | |||
@@ -0,0 +1,2 @@ | |||
1 | struct B(pub (super::A)); | ||
2 | struct B(pub (crate::A,)); | ||