diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt | 257 |
1 files changed, 0 insertions, 257 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt b/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt deleted file mode 100644 index 3f06f20f9..000000000 --- a/crates/ra_syntax/tests/data/parser/ok/0018_struct_type_params.txt +++ /dev/null | |||
@@ -1,257 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 290) | ||
2 | STRUCT_DEF@[0; 13) | ||
3 | STRUCT_KW@[0; 6) "struct" | ||
4 | WHITESPACE@[6; 7) " " | ||
5 | NAME@[7; 9) | ||
6 | IDENT@[7; 9) "S1" | ||
7 | TYPE_PARAM_LIST@[9; 12) | ||
8 | L_ANGLE@[9; 10) "<" | ||
9 | TYPE_PARAM@[10; 11) | ||
10 | NAME@[10; 11) | ||
11 | IDENT@[10; 11) "T" | ||
12 | R_ANGLE@[11; 12) ">" | ||
13 | SEMI@[12; 13) ";" | ||
14 | WHITESPACE@[13; 14) "\n" | ||
15 | STRUCT_DEF@[14; 32) | ||
16 | STRUCT_KW@[14; 20) "struct" | ||
17 | WHITESPACE@[20; 21) " " | ||
18 | NAME@[21; 23) | ||
19 | IDENT@[21; 23) "S2" | ||
20 | TYPE_PARAM_LIST@[23; 26) | ||
21 | L_ANGLE@[23; 24) "<" | ||
22 | TYPE_PARAM@[24; 25) | ||
23 | NAME@[24; 25) | ||
24 | IDENT@[24; 25) "T" | ||
25 | R_ANGLE@[25; 26) ">" | ||
26 | POS_FIELD_DEF_LIST@[26; 31) | ||
27 | L_PAREN@[26; 27) "(" | ||
28 | POS_FIELD_DEF@[27; 30) | ||
29 | PATH_TYPE@[27; 30) | ||
30 | PATH@[27; 30) | ||
31 | PATH_SEGMENT@[27; 30) | ||
32 | NAME_REF@[27; 30) | ||
33 | IDENT@[27; 30) "u32" | ||
34 | R_PAREN@[30; 31) ")" | ||
35 | SEMI@[31; 32) ";" | ||
36 | WHITESPACE@[32; 33) "\n" | ||
37 | STRUCT_DEF@[33; 56) | ||
38 | STRUCT_KW@[33; 39) "struct" | ||
39 | WHITESPACE@[39; 40) " " | ||
40 | NAME@[40; 42) | ||
41 | IDENT@[40; 42) "S3" | ||
42 | TYPE_PARAM_LIST@[42; 45) | ||
43 | L_ANGLE@[42; 43) "<" | ||
44 | TYPE_PARAM@[43; 44) | ||
45 | NAME@[43; 44) | ||
46 | IDENT@[43; 44) "T" | ||
47 | R_ANGLE@[44; 45) ">" | ||
48 | WHITESPACE@[45; 46) " " | ||
49 | NAMED_FIELD_DEF_LIST@[46; 56) | ||
50 | L_CURLY@[46; 47) "{" | ||
51 | WHITESPACE@[47; 48) " " | ||
52 | NAMED_FIELD_DEF@[48; 54) | ||
53 | NAME@[48; 49) | ||
54 | IDENT@[48; 49) "u" | ||
55 | COLON@[49; 50) ":" | ||
56 | WHITESPACE@[50; 51) " " | ||
57 | PATH_TYPE@[51; 54) | ||
58 | PATH@[51; 54) | ||
59 | PATH_SEGMENT@[51; 54) | ||
60 | NAME_REF@[51; 54) | ||
61 | IDENT@[51; 54) "u32" | ||
62 | WHITESPACE@[54; 55) " " | ||
63 | R_CURLY@[55; 56) "}" | ||
64 | WHITESPACE@[56; 58) "\n\n" | ||
65 | STRUCT_DEF@[58; 70) | ||
66 | STRUCT_KW@[58; 64) "struct" | ||
67 | WHITESPACE@[64; 65) " " | ||
68 | NAME@[65; 67) | ||
69 | IDENT@[65; 67) "S4" | ||
70 | TYPE_PARAM_LIST@[67; 69) | ||
71 | L_ANGLE@[67; 68) "<" | ||
72 | R_ANGLE@[68; 69) ">" | ||
73 | SEMI@[69; 70) ";" | ||
74 | WHITESPACE@[70; 71) "\n" | ||
75 | STRUCT_DEF@[71; 85) | ||
76 | STRUCT_KW@[71; 77) "struct" | ||
77 | WHITESPACE@[77; 78) " " | ||
78 | NAME@[78; 80) | ||
79 | IDENT@[78; 80) "S5" | ||
80 | TYPE_PARAM_LIST@[80; 84) | ||
81 | L_ANGLE@[80; 81) "<" | ||
82 | LIFETIME_PARAM@[81; 83) | ||
83 | LIFETIME@[81; 83) "\'a" | ||
84 | R_ANGLE@[83; 84) ">" | ||
85 | SEMI@[84; 85) ";" | ||
86 | WHITESPACE@[85; 86) "\n" | ||
87 | STRUCT_DEF@[86; 101) | ||
88 | STRUCT_KW@[86; 92) "struct" | ||
89 | WHITESPACE@[92; 93) " " | ||
90 | NAME@[93; 95) | ||
91 | IDENT@[93; 95) "S6" | ||
92 | TYPE_PARAM_LIST@[95; 100) | ||
93 | L_ANGLE@[95; 96) "<" | ||
94 | LIFETIME_PARAM@[96; 99) | ||
95 | LIFETIME@[96; 98) "\'a" | ||
96 | COLON@[98; 99) ":" | ||
97 | R_ANGLE@[99; 100) ">" | ||
98 | SEMI@[100; 101) ";" | ||
99 | WHITESPACE@[101; 102) "\n" | ||
100 | STRUCT_DEF@[102; 120) | ||
101 | STRUCT_KW@[102; 108) "struct" | ||
102 | WHITESPACE@[108; 109) " " | ||
103 | NAME@[109; 111) | ||
104 | IDENT@[109; 111) "S7" | ||
105 | TYPE_PARAM_LIST@[111; 119) | ||
106 | L_ANGLE@[111; 112) "<" | ||
107 | LIFETIME_PARAM@[112; 118) | ||
108 | LIFETIME@[112; 114) "\'a" | ||
109 | COLON@[114; 115) ":" | ||
110 | WHITESPACE@[115; 116) " " | ||
111 | LIFETIME@[116; 118) "\'b" | ||
112 | R_ANGLE@[118; 119) ">" | ||
113 | SEMI@[119; 120) ";" | ||
114 | WHITESPACE@[120; 121) "\n" | ||
115 | STRUCT_DEF@[121; 142) | ||
116 | STRUCT_KW@[121; 127) "struct" | ||
117 | WHITESPACE@[127; 128) " " | ||
118 | NAME@[128; 130) | ||
119 | IDENT@[128; 130) "S8" | ||
120 | TYPE_PARAM_LIST@[130; 141) | ||
121 | L_ANGLE@[130; 131) "<" | ||
122 | LIFETIME_PARAM@[131; 139) | ||
123 | LIFETIME@[131; 133) "\'a" | ||
124 | COLON@[133; 134) ":" | ||
125 | WHITESPACE@[134; 135) " " | ||
126 | LIFETIME@[135; 137) "\'b" | ||
127 | WHITESPACE@[137; 138) " " | ||
128 | PLUS@[138; 139) "+" | ||
129 | WHITESPACE@[139; 140) " " | ||
130 | R_ANGLE@[140; 141) ">" | ||
131 | SEMI@[141; 142) ";" | ||
132 | WHITESPACE@[142; 143) "\n" | ||
133 | STRUCT_DEF@[143; 166) | ||
134 | STRUCT_KW@[143; 149) "struct" | ||
135 | WHITESPACE@[149; 150) " " | ||
136 | NAME@[150; 152) | ||
137 | IDENT@[150; 152) "S9" | ||
138 | TYPE_PARAM_LIST@[152; 165) | ||
139 | L_ANGLE@[152; 153) "<" | ||
140 | LIFETIME_PARAM@[153; 164) | ||
141 | LIFETIME@[153; 155) "\'a" | ||
142 | COLON@[155; 156) ":" | ||
143 | WHITESPACE@[156; 157) " " | ||
144 | LIFETIME@[157; 159) "\'b" | ||
145 | WHITESPACE@[159; 160) " " | ||
146 | PLUS@[160; 161) "+" | ||
147 | WHITESPACE@[161; 162) " " | ||
148 | LIFETIME@[162; 164) "\'c" | ||
149 | R_ANGLE@[164; 165) ">" | ||
150 | SEMI@[165; 166) ";" | ||
151 | WHITESPACE@[166; 167) "\n" | ||
152 | STRUCT_DEF@[167; 183) | ||
153 | STRUCT_KW@[167; 173) "struct" | ||
154 | WHITESPACE@[173; 174) " " | ||
155 | NAME@[174; 177) | ||
156 | IDENT@[174; 177) "S10" | ||
157 | TYPE_PARAM_LIST@[177; 182) | ||
158 | L_ANGLE@[177; 178) "<" | ||
159 | LIFETIME_PARAM@[178; 180) | ||
160 | LIFETIME@[178; 180) "\'a" | ||
161 | COMMA@[180; 181) "," | ||
162 | R_ANGLE@[181; 182) ">" | ||
163 | SEMI@[182; 183) ";" | ||
164 | WHITESPACE@[183; 184) "\n" | ||
165 | STRUCT_DEF@[184; 203) | ||
166 | STRUCT_KW@[184; 190) "struct" | ||
167 | WHITESPACE@[190; 191) " " | ||
168 | NAME@[191; 194) | ||
169 | IDENT@[191; 194) "S11" | ||
170 | TYPE_PARAM_LIST@[194; 202) | ||
171 | L_ANGLE@[194; 195) "<" | ||
172 | LIFETIME_PARAM@[195; 197) | ||
173 | LIFETIME@[195; 197) "\'a" | ||
174 | COMMA@[197; 198) "," | ||
175 | WHITESPACE@[198; 199) " " | ||
176 | LIFETIME_PARAM@[199; 201) | ||
177 | LIFETIME@[199; 201) "\'b" | ||
178 | R_ANGLE@[201; 202) ">" | ||
179 | SEMI@[202; 203) ";" | ||
180 | WHITESPACE@[203; 204) "\n" | ||
181 | STRUCT_DEF@[204; 233) | ||
182 | STRUCT_KW@[204; 210) "struct" | ||
183 | WHITESPACE@[210; 211) " " | ||
184 | NAME@[211; 214) | ||
185 | IDENT@[211; 214) "S12" | ||
186 | TYPE_PARAM_LIST@[214; 232) | ||
187 | L_ANGLE@[214; 215) "<" | ||
188 | LIFETIME_PARAM@[215; 222) | ||
189 | LIFETIME@[215; 217) "\'a" | ||
190 | COLON@[217; 218) ":" | ||
191 | WHITESPACE@[218; 219) " " | ||
192 | LIFETIME@[219; 221) "\'b" | ||
193 | PLUS@[221; 222) "+" | ||
194 | COMMA@[222; 223) "," | ||
195 | WHITESPACE@[223; 224) " " | ||
196 | LIFETIME_PARAM@[224; 230) | ||
197 | LIFETIME@[224; 226) "\'b" | ||
198 | COLON@[226; 227) ":" | ||
199 | WHITESPACE@[227; 228) " " | ||
200 | LIFETIME@[228; 230) "\'c" | ||
201 | COMMA@[230; 231) "," | ||
202 | R_ANGLE@[231; 232) ">" | ||
203 | SEMI@[232; 233) ";" | ||
204 | WHITESPACE@[233; 235) "\n\n" | ||
205 | STRUCT_DEF@[235; 249) | ||
206 | STRUCT_KW@[235; 241) "struct" | ||
207 | WHITESPACE@[241; 242) " " | ||
208 | NAME@[242; 245) | ||
209 | IDENT@[242; 245) "S13" | ||
210 | TYPE_PARAM_LIST@[245; 248) | ||
211 | L_ANGLE@[245; 246) "<" | ||
212 | TYPE_PARAM@[246; 247) | ||
213 | NAME@[246; 247) | ||
214 | IDENT@[246; 247) "T" | ||
215 | R_ANGLE@[247; 248) ">" | ||
216 | SEMI@[248; 249) ";" | ||
217 | WHITESPACE@[249; 250) "\n" | ||
218 | STRUCT_DEF@[250; 267) | ||
219 | STRUCT_KW@[250; 256) "struct" | ||
220 | WHITESPACE@[256; 257) " " | ||
221 | NAME@[257; 260) | ||
222 | IDENT@[257; 260) "S14" | ||
223 | TYPE_PARAM_LIST@[260; 266) | ||
224 | L_ANGLE@[260; 261) "<" | ||
225 | TYPE_PARAM@[261; 262) | ||
226 | NAME@[261; 262) | ||
227 | IDENT@[261; 262) "T" | ||
228 | COMMA@[262; 263) "," | ||
229 | WHITESPACE@[263; 264) " " | ||
230 | TYPE_PARAM@[264; 265) | ||
231 | NAME@[264; 265) | ||
232 | IDENT@[264; 265) "U" | ||
233 | R_ANGLE@[265; 266) ">" | ||
234 | SEMI@[266; 267) ";" | ||
235 | WHITESPACE@[267; 268) "\n" | ||
236 | STRUCT_DEF@[268; 289) | ||
237 | STRUCT_KW@[268; 274) "struct" | ||
238 | WHITESPACE@[274; 275) " " | ||
239 | NAME@[275; 278) | ||
240 | IDENT@[275; 278) "S15" | ||
241 | TYPE_PARAM_LIST@[278; 288) | ||
242 | L_ANGLE@[278; 279) "<" | ||
243 | LIFETIME_PARAM@[279; 281) | ||
244 | LIFETIME@[279; 281) "\'a" | ||
245 | COMMA@[281; 282) "," | ||
246 | WHITESPACE@[282; 283) " " | ||
247 | TYPE_PARAM@[283; 284) | ||
248 | NAME@[283; 284) | ||
249 | IDENT@[283; 284) "T" | ||
250 | COMMA@[284; 285) "," | ||
251 | WHITESPACE@[285; 286) " " | ||
252 | TYPE_PARAM@[286; 287) | ||
253 | NAME@[286; 287) | ||
254 | IDENT@[286; 287) "U" | ||
255 | R_ANGLE@[287; 288) ">" | ||
256 | SEMI@[288; 289) ";" | ||
257 | WHITESPACE@[289; 290) "\n" | ||