diff options
author | csmoe <[email protected]> | 2018-09-26 03:01:42 +0100 |
---|---|---|
committer | csmoe <[email protected]> | 2018-09-26 09:53:16 +0100 |
commit | 8b710e95353d9f840f78645c9593a66adb0636b6 (patch) | |
tree | 6a918130bce71b0a4fc331501086d2f65c46a957 /crates/ra_syntax/tests/data/parser/inline | |
parent | edf1cc3582a842837d64fa6ec08df00c028521f9 (diff) |
generate testsuite for impl_type
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0111_impl_type.rs | 4 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt | 79 |
2 files changed, 83 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.rs b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.rs new file mode 100644 index 000000000..b8c7b65e3 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.rs | |||
@@ -0,0 +1,4 @@ | |||
1 | impl Type {} | ||
2 | impl Trait1 for T {} | ||
3 | impl impl NotType {} | ||
4 | impl Trait2 for impl NotType {} | ||
diff --git a/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt new file mode 100644 index 000000000..a2907b060 --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/0111_impl_type.txt | |||
@@ -0,0 +1,79 @@ | |||
1 | ROOT@[0; 87) | ||
2 | IMPL_ITEM@[0; 12) | ||
3 | IMPL_KW@[0; 4) | ||
4 | WHITESPACE@[4; 5) | ||
5 | PATH_TYPE@[5; 9) | ||
6 | PATH@[5; 9) | ||
7 | PATH_SEGMENT@[5; 9) | ||
8 | NAME_REF@[5; 9) | ||
9 | IDENT@[5; 9) "Type" | ||
10 | WHITESPACE@[9; 10) | ||
11 | ITEM_LIST@[10; 12) | ||
12 | L_CURLY@[10; 11) | ||
13 | R_CURLY@[11; 12) | ||
14 | WHITESPACE@[12; 13) | ||
15 | IMPL_ITEM@[13; 33) | ||
16 | IMPL_KW@[13; 17) | ||
17 | WHITESPACE@[17; 18) | ||
18 | PATH_TYPE@[18; 24) | ||
19 | PATH@[18; 24) | ||
20 | PATH_SEGMENT@[18; 24) | ||
21 | NAME_REF@[18; 24) | ||
22 | IDENT@[18; 24) "Trait1" | ||
23 | WHITESPACE@[24; 25) | ||
24 | FOR_KW@[25; 28) | ||
25 | WHITESPACE@[28; 29) | ||
26 | PATH_TYPE@[29; 30) | ||
27 | PATH@[29; 30) | ||
28 | PATH_SEGMENT@[29; 30) | ||
29 | NAME_REF@[29; 30) | ||
30 | IDENT@[29; 30) "T" | ||
31 | WHITESPACE@[30; 31) | ||
32 | ITEM_LIST@[31; 33) | ||
33 | L_CURLY@[31; 32) | ||
34 | R_CURLY@[32; 33) | ||
35 | WHITESPACE@[33; 34) | ||
36 | IMPL_ITEM@[34; 38) | ||
37 | IMPL_KW@[34; 38) | ||
38 | err: `expected trait or type` | ||
39 | err: `expected `{`` | ||
40 | WHITESPACE@[38; 39) | ||
41 | IMPL_ITEM@[39; 54) | ||
42 | IMPL_KW@[39; 43) | ||
43 | WHITESPACE@[43; 44) | ||
44 | PATH_TYPE@[44; 51) | ||
45 | PATH@[44; 51) | ||
46 | PATH_SEGMENT@[44; 51) | ||
47 | NAME_REF@[44; 51) | ||
48 | IDENT@[44; 51) "NotType" | ||
49 | WHITESPACE@[51; 52) | ||
50 | ITEM_LIST@[52; 54) | ||
51 | L_CURLY@[52; 53) | ||
52 | R_CURLY@[53; 54) | ||
53 | WHITESPACE@[54; 55) | ||
54 | IMPL_ITEM@[55; 70) | ||
55 | IMPL_KW@[55; 59) | ||
56 | WHITESPACE@[59; 60) | ||
57 | PATH_TYPE@[60; 66) | ||
58 | PATH@[60; 66) | ||
59 | PATH_SEGMENT@[60; 66) | ||
60 | NAME_REF@[60; 66) | ||
61 | IDENT@[60; 66) "Trait2" | ||
62 | WHITESPACE@[66; 67) | ||
63 | FOR_KW@[67; 70) | ||
64 | err: `expected trait or type` | ||
65 | err: `expected `{`` | ||
66 | WHITESPACE@[70; 71) | ||
67 | IMPL_ITEM@[71; 86) | ||
68 | IMPL_KW@[71; 75) | ||
69 | WHITESPACE@[75; 76) | ||
70 | PATH_TYPE@[76; 83) | ||
71 | PATH@[76; 83) | ||
72 | PATH_SEGMENT@[76; 83) | ||
73 | NAME_REF@[76; 83) | ||
74 | IDENT@[76; 83) "NotType" | ||
75 | WHITESPACE@[83; 84) | ||
76 | ITEM_LIST@[84; 86) | ||
77 | L_CURLY@[84; 85) | ||
78 | R_CURLY@[85; 86) | ||
79 | WHITESPACE@[86; 87) | ||