diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0033_label_break.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0033_label_break.txt | 220 |
1 files changed, 0 insertions, 220 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0033_label_break.txt b/crates/ra_syntax/test_data/parser/ok/0033_label_break.txt deleted file mode 100644 index bd9e3fd85..000000000 --- a/crates/ra_syntax/test_data/parser/ok/0033_label_break.txt +++ /dev/null | |||
@@ -1,220 +0,0 @@ | |||
1 | SOURCE_FILE@[0; 506) | ||
2 | FN_DEF@[0; 505) | ||
3 | COMMENT@[0; 33) "// format with label ..." | ||
4 | WHITESPACE@[33; 34) "\n" | ||
5 | FN_KW@[34; 36) "fn" | ||
6 | WHITESPACE@[36; 37) " " | ||
7 | NAME@[37; 41) | ||
8 | IDENT@[37; 41) "main" | ||
9 | PARAM_LIST@[41; 43) | ||
10 | L_PAREN@[41; 42) "(" | ||
11 | R_PAREN@[42; 43) ")" | ||
12 | WHITESPACE@[43; 44) " " | ||
13 | BLOCK_EXPR@[44; 505) | ||
14 | BLOCK@[44; 505) | ||
15 | L_CURLY@[44; 45) "{" | ||
16 | WHITESPACE@[45; 50) "\n " | ||
17 | EXPR_STMT@[50; 66) | ||
18 | BLOCK_EXPR@[50; 66) | ||
19 | LABEL@[50; 63) | ||
20 | LIFETIME@[50; 62) "\'empty_block" | ||
21 | COLON@[62; 63) ":" | ||
22 | WHITESPACE@[63; 64) " " | ||
23 | BLOCK@[64; 66) | ||
24 | L_CURLY@[64; 65) "{" | ||
25 | R_CURLY@[65; 66) "}" | ||
26 | WHITESPACE@[66; 72) "\n\n " | ||
27 | EXPR_STMT@[72; 295) | ||
28 | BLOCK_EXPR@[72; 295) | ||
29 | LABEL@[72; 79) | ||
30 | LIFETIME@[72; 78) "\'block" | ||
31 | COLON@[78; 79) ":" | ||
32 | WHITESPACE@[79; 80) " " | ||
33 | BLOCK@[80; 295) | ||
34 | L_CURLY@[80; 81) "{" | ||
35 | WHITESPACE@[81; 90) "\n " | ||
36 | EXPR_STMT@[90; 101) | ||
37 | CALL_EXPR@[90; 100) | ||
38 | PATH_EXPR@[90; 98) | ||
39 | PATH@[90; 98) | ||
40 | PATH_SEGMENT@[90; 98) | ||
41 | NAME_REF@[90; 98) | ||
42 | IDENT@[90; 98) "do_thing" | ||
43 | ARG_LIST@[98; 100) | ||
44 | L_PAREN@[98; 99) "(" | ||
45 | R_PAREN@[99; 100) ")" | ||
46 | SEMI@[100; 101) ";" | ||
47 | WHITESPACE@[101; 110) "\n " | ||
48 | EXPR_STMT@[110; 170) | ||
49 | IF_EXPR@[110; 170) | ||
50 | IF_KW@[110; 112) "if" | ||
51 | WHITESPACE@[112; 113) " " | ||
52 | CONDITION@[113; 132) | ||
53 | CALL_EXPR@[113; 132) | ||
54 | PATH_EXPR@[113; 130) | ||
55 | PATH@[113; 130) | ||
56 | PATH_SEGMENT@[113; 130) | ||
57 | NAME_REF@[113; 130) | ||
58 | IDENT@[113; 130) "condition_not_met" | ||
59 | ARG_LIST@[130; 132) | ||
60 | L_PAREN@[130; 131) "(" | ||
61 | R_PAREN@[131; 132) ")" | ||
62 | WHITESPACE@[132; 133) " " | ||
63 | BLOCK_EXPR@[133; 170) | ||
64 | BLOCK@[133; 170) | ||
65 | L_CURLY@[133; 134) "{" | ||
66 | WHITESPACE@[134; 147) "\n " | ||
67 | EXPR_STMT@[147; 160) | ||
68 | BREAK_EXPR@[147; 159) | ||
69 | BREAK_KW@[147; 152) "break" | ||
70 | WHITESPACE@[152; 153) " " | ||
71 | LIFETIME@[153; 159) "\'block" | ||
72 | SEMI@[159; 160) ";" | ||
73 | WHITESPACE@[160; 169) "\n " | ||
74 | R_CURLY@[169; 170) "}" | ||
75 | WHITESPACE@[170; 179) "\n " | ||
76 | EXPR_STMT@[179; 195) | ||
77 | CALL_EXPR@[179; 194) | ||
78 | PATH_EXPR@[179; 192) | ||
79 | PATH@[179; 192) | ||
80 | PATH_SEGMENT@[179; 192) | ||
81 | NAME_REF@[179; 192) | ||
82 | IDENT@[179; 192) "do_next_thing" | ||
83 | ARG_LIST@[192; 194) | ||
84 | L_PAREN@[192; 193) "(" | ||
85 | R_PAREN@[193; 194) ")" | ||
86 | SEMI@[194; 195) ";" | ||
87 | WHITESPACE@[195; 204) "\n " | ||
88 | EXPR_STMT@[204; 264) | ||
89 | IF_EXPR@[204; 264) | ||
90 | IF_KW@[204; 206) "if" | ||
91 | WHITESPACE@[206; 207) " " | ||
92 | CONDITION@[207; 226) | ||
93 | CALL_EXPR@[207; 226) | ||
94 | PATH_EXPR@[207; 224) | ||
95 | PATH@[207; 224) | ||
96 | PATH_SEGMENT@[207; 224) | ||
97 | NAME_REF@[207; 224) | ||
98 | IDENT@[207; 224) "condition_not_met" | ||
99 | ARG_LIST@[224; 226) | ||
100 | L_PAREN@[224; 225) "(" | ||
101 | R_PAREN@[225; 226) ")" | ||
102 | WHITESPACE@[226; 227) " " | ||
103 | BLOCK_EXPR@[227; 264) | ||
104 | BLOCK@[227; 264) | ||
105 | L_CURLY@[227; 228) "{" | ||
106 | WHITESPACE@[228; 241) "\n " | ||
107 | EXPR_STMT@[241; 254) | ||
108 | BREAK_EXPR@[241; 253) | ||
109 | BREAK_KW@[241; 246) "break" | ||
110 | WHITESPACE@[246; 247) " " | ||
111 | LIFETIME@[247; 253) "\'block" | ||
112 | SEMI@[253; 254) ";" | ||
113 | WHITESPACE@[254; 263) "\n " | ||
114 | R_CURLY@[263; 264) "}" | ||
115 | WHITESPACE@[264; 273) "\n " | ||
116 | EXPR_STMT@[273; 289) | ||
117 | CALL_EXPR@[273; 288) | ||
118 | PATH_EXPR@[273; 286) | ||
119 | PATH@[273; 286) | ||
120 | PATH_SEGMENT@[273; 286) | ||
121 | NAME_REF@[273; 286) | ||
122 | IDENT@[273; 286) "do_last_thing" | ||
123 | ARG_LIST@[286; 288) | ||
124 | L_PAREN@[286; 287) "(" | ||
125 | R_PAREN@[287; 288) ")" | ||
126 | SEMI@[288; 289) ";" | ||
127 | WHITESPACE@[289; 294) "\n " | ||
128 | R_CURLY@[294; 295) "}" | ||
129 | WHITESPACE@[295; 301) "\n\n " | ||
130 | LET_STMT@[301; 503) | ||
131 | LET_KW@[301; 304) "let" | ||
132 | WHITESPACE@[304; 305) " " | ||
133 | BIND_PAT@[305; 311) | ||
134 | NAME@[305; 311) | ||
135 | IDENT@[305; 311) "result" | ||
136 | WHITESPACE@[311; 312) " " | ||
137 | EQ@[312; 313) "=" | ||
138 | WHITESPACE@[313; 314) " " | ||
139 | BLOCK_EXPR@[314; 502) | ||
140 | LABEL@[314; 321) | ||
141 | LIFETIME@[314; 320) "\'block" | ||
142 | COLON@[320; 321) ":" | ||
143 | WHITESPACE@[321; 322) " " | ||
144 | BLOCK@[322; 502) | ||
145 | L_CURLY@[322; 323) "{" | ||
146 | WHITESPACE@[323; 332) "\n " | ||
147 | EXPR_STMT@[332; 403) | ||
148 | IF_EXPR@[332; 403) | ||
149 | IF_KW@[332; 334) "if" | ||
150 | WHITESPACE@[334; 335) " " | ||
151 | CONDITION@[335; 340) | ||
152 | CALL_EXPR@[335; 340) | ||
153 | PATH_EXPR@[335; 338) | ||
154 | PATH@[335; 338) | ||
155 | PATH_SEGMENT@[335; 338) | ||
156 | NAME_REF@[335; 338) | ||
157 | IDENT@[335; 338) "foo" | ||
158 | ARG_LIST@[338; 340) | ||
159 | L_PAREN@[338; 339) "(" | ||
160 | R_PAREN@[339; 340) ")" | ||
161 | WHITESPACE@[340; 341) " " | ||
162 | BLOCK_EXPR@[341; 403) | ||
163 | BLOCK@[341; 403) | ||
164 | L_CURLY@[341; 342) "{" | ||
165 | WHITESPACE@[342; 355) "\n " | ||
166 | COMMENT@[355; 365) "// comment" | ||
167 | WHITESPACE@[365; 378) "\n " | ||
168 | EXPR_STMT@[378; 393) | ||
169 | BREAK_EXPR@[378; 392) | ||
170 | BREAK_KW@[378; 383) "break" | ||
171 | WHITESPACE@[383; 384) " " | ||
172 | LIFETIME@[384; 390) "\'block" | ||
173 | WHITESPACE@[390; 391) " " | ||
174 | LITERAL@[391; 392) | ||
175 | INT_NUMBER@[391; 392) "1" | ||
176 | SEMI@[392; 393) ";" | ||
177 | WHITESPACE@[393; 402) "\n " | ||
178 | R_CURLY@[402; 403) "}" | ||
179 | WHITESPACE@[403; 412) "\n " | ||
180 | EXPR_STMT@[412; 486) | ||
181 | IF_EXPR@[412; 486) | ||
182 | IF_KW@[412; 414) "if" | ||
183 | WHITESPACE@[414; 415) " " | ||
184 | CONDITION@[415; 420) | ||
185 | CALL_EXPR@[415; 420) | ||
186 | PATH_EXPR@[415; 418) | ||
187 | PATH@[415; 418) | ||
188 | PATH_SEGMENT@[415; 418) | ||
189 | NAME_REF@[415; 418) | ||
190 | IDENT@[415; 418) "bar" | ||
191 | ARG_LIST@[418; 420) | ||
192 | L_PAREN@[418; 419) "(" | ||
193 | R_PAREN@[419; 420) ")" | ||
194 | WHITESPACE@[420; 421) " " | ||
195 | BLOCK_EXPR@[421; 486) | ||
196 | BLOCK@[421; 486) | ||
197 | L_CURLY@[421; 422) "{" | ||
198 | WHITESPACE@[422; 435) "\n " | ||
199 | COMMENT@[435; 448) "/* comment */" | ||
200 | WHITESPACE@[448; 461) "\n " | ||
201 | EXPR_STMT@[461; 476) | ||
202 | BREAK_EXPR@[461; 475) | ||
203 | BREAK_KW@[461; 466) "break" | ||
204 | WHITESPACE@[466; 467) " " | ||
205 | LIFETIME@[467; 473) "\'block" | ||
206 | WHITESPACE@[473; 474) " " | ||
207 | LITERAL@[474; 475) | ||
208 | INT_NUMBER@[474; 475) "2" | ||
209 | SEMI@[475; 476) ";" | ||
210 | WHITESPACE@[476; 485) "\n " | ||
211 | R_CURLY@[485; 486) "}" | ||
212 | WHITESPACE@[486; 495) "\n " | ||
213 | LITERAL@[495; 496) | ||
214 | INT_NUMBER@[495; 496) "3" | ||
215 | WHITESPACE@[496; 501) "\n " | ||
216 | R_CURLY@[501; 502) "}" | ||
217 | SEMI@[502; 503) ";" | ||
218 | WHITESPACE@[503; 504) "\n" | ||
219 | R_CURLY@[504; 505) "}" | ||
220 | WHITESPACE@[505; 506) "\n" | ||