diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast b/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast new file mode 100644 index 000000000..c36e2f770 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/err/0032_match_arms_inner_attrs.rast | |||
@@ -0,0 +1,204 @@ | |||
1 | SOURCE_FILE@[0; 293) | ||
2 | FN_DEF@[0; 292) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) "(" | ||
9 | R_PAREN@[7; 8) ")" | ||
10 | WHITESPACE@[8; 9) " " | ||
11 | BLOCK_EXPR@[9; 292) | ||
12 | BLOCK@[9; 292) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 101) | ||
16 | MATCH_EXPR@[15; 101) | ||
17 | MATCH_KW@[15; 20) "match" | ||
18 | WHITESPACE@[20; 21) " " | ||
19 | TUPLE_EXPR@[21; 23) | ||
20 | L_PAREN@[21; 22) "(" | ||
21 | R_PAREN@[22; 23) ")" | ||
22 | WHITESPACE@[23; 24) " " | ||
23 | MATCH_ARM_LIST@[24; 101) | ||
24 | L_CURLY@[24; 25) "{" | ||
25 | WHITESPACE@[25; 34) "\n " | ||
26 | MATCH_ARM@[34; 41) | ||
27 | PLACEHOLDER_PAT@[34; 35) | ||
28 | UNDERSCORE@[34; 35) "_" | ||
29 | WHITESPACE@[35; 36) " " | ||
30 | FAT_ARROW@[36; 38) "=>" | ||
31 | WHITESPACE@[38; 39) " " | ||
32 | TUPLE_EXPR@[39; 41) | ||
33 | L_PAREN@[39; 40) "(" | ||
34 | R_PAREN@[40; 41) ")" | ||
35 | COMMA@[41; 42) "," | ||
36 | WHITESPACE@[42; 51) "\n " | ||
37 | MATCH_ARM@[51; 78) | ||
38 | ATTR@[51; 52) | ||
39 | POUND@[51; 52) "#" | ||
40 | ERROR@[52; 53) | ||
41 | EXCL@[52; 53) "!" | ||
42 | ARRAY_EXPR@[53; 78) | ||
43 | L_BRACK@[53; 54) "[" | ||
44 | CALL_EXPR@[54; 77) | ||
45 | PATH_EXPR@[54; 57) | ||
46 | PATH@[54; 57) | ||
47 | PATH_SEGMENT@[54; 57) | ||
48 | NAME_REF@[54; 57) | ||
49 | IDENT@[54; 57) "doc" | ||
50 | ARG_LIST@[57; 77) | ||
51 | L_PAREN@[57; 58) "(" | ||
52 | LITERAL@[58; 76) | ||
53 | STRING@[58; 76) "\"Not allowed here\"" | ||
54 | R_PAREN@[76; 77) ")" | ||
55 | R_BRACK@[77; 78) "]" | ||
56 | WHITESPACE@[78; 87) "\n " | ||
57 | MATCH_ARM@[87; 94) | ||
58 | PLACEHOLDER_PAT@[87; 88) | ||
59 | UNDERSCORE@[87; 88) "_" | ||
60 | WHITESPACE@[88; 89) " " | ||
61 | FAT_ARROW@[89; 91) "=>" | ||
62 | WHITESPACE@[91; 92) " " | ||
63 | TUPLE_EXPR@[92; 94) | ||
64 | L_PAREN@[92; 93) "(" | ||
65 | R_PAREN@[93; 94) ")" | ||
66 | COMMA@[94; 95) "," | ||
67 | WHITESPACE@[95; 100) "\n " | ||
68 | R_CURLY@[100; 101) "}" | ||
69 | WHITESPACE@[101; 107) "\n\n " | ||
70 | EXPR_STMT@[107; 185) | ||
71 | MATCH_EXPR@[107; 185) | ||
72 | MATCH_KW@[107; 112) "match" | ||
73 | WHITESPACE@[112; 113) " " | ||
74 | TUPLE_EXPR@[113; 115) | ||
75 | L_PAREN@[113; 114) "(" | ||
76 | R_PAREN@[114; 115) ")" | ||
77 | WHITESPACE@[115; 116) " " | ||
78 | MATCH_ARM_LIST@[116; 185) | ||
79 | L_CURLY@[116; 117) "{" | ||
80 | WHITESPACE@[117; 126) "\n " | ||
81 | MATCH_ARM@[126; 133) | ||
82 | PLACEHOLDER_PAT@[126; 127) | ||
83 | UNDERSCORE@[126; 127) "_" | ||
84 | WHITESPACE@[127; 128) " " | ||
85 | FAT_ARROW@[128; 130) "=>" | ||
86 | WHITESPACE@[130; 131) " " | ||
87 | TUPLE_EXPR@[131; 133) | ||
88 | L_PAREN@[131; 132) "(" | ||
89 | R_PAREN@[132; 133) ")" | ||
90 | COMMA@[133; 134) "," | ||
91 | WHITESPACE@[134; 143) "\n " | ||
92 | MATCH_ARM@[143; 150) | ||
93 | PLACEHOLDER_PAT@[143; 144) | ||
94 | UNDERSCORE@[143; 144) "_" | ||
95 | WHITESPACE@[144; 145) " " | ||
96 | FAT_ARROW@[145; 147) "=>" | ||
97 | WHITESPACE@[147; 148) " " | ||
98 | TUPLE_EXPR@[148; 150) | ||
99 | L_PAREN@[148; 149) "(" | ||
100 | R_PAREN@[149; 150) ")" | ||
101 | COMMA@[150; 151) "," | ||
102 | WHITESPACE@[151; 160) "\n " | ||
103 | MATCH_ARM@[160; 179) | ||
104 | ATTR@[160; 161) | ||
105 | POUND@[160; 161) "#" | ||
106 | ERROR@[161; 162) | ||
107 | EXCL@[161; 162) "!" | ||
108 | ARRAY_EXPR@[162; 179) | ||
109 | L_BRACK@[162; 163) "[" | ||
110 | CALL_EXPR@[163; 178) | ||
111 | PATH_EXPR@[163; 166) | ||
112 | PATH@[163; 166) | ||
113 | PATH_SEGMENT@[163; 166) | ||
114 | NAME_REF@[163; 166) | ||
115 | IDENT@[163; 166) "doc" | ||
116 | ARG_LIST@[166; 178) | ||
117 | L_PAREN@[166; 167) "(" | ||
118 | LITERAL@[167; 177) | ||
119 | STRING@[167; 177) "\"Nor here\"" | ||
120 | R_PAREN@[177; 178) ")" | ||
121 | R_BRACK@[178; 179) "]" | ||
122 | WHITESPACE@[179; 184) "\n " | ||
123 | R_CURLY@[184; 185) "}" | ||
124 | WHITESPACE@[185; 191) "\n\n " | ||
125 | MATCH_EXPR@[191; 290) | ||
126 | MATCH_KW@[191; 196) "match" | ||
127 | WHITESPACE@[196; 197) " " | ||
128 | TUPLE_EXPR@[197; 199) | ||
129 | L_PAREN@[197; 198) "(" | ||
130 | R_PAREN@[198; 199) ")" | ||
131 | WHITESPACE@[199; 200) " " | ||
132 | MATCH_ARM_LIST@[200; 290) | ||
133 | L_CURLY@[200; 201) "{" | ||
134 | WHITESPACE@[201; 210) "\n " | ||
135 | MATCH_ARM@[210; 250) | ||
136 | ATTR@[210; 222) | ||
137 | POUND@[210; 211) "#" | ||
138 | L_BRACK@[211; 212) "[" | ||
139 | PATH@[212; 215) | ||
140 | PATH_SEGMENT@[212; 215) | ||
141 | NAME_REF@[212; 215) | ||
142 | IDENT@[212; 215) "cfg" | ||
143 | TOKEN_TREE@[215; 221) | ||
144 | L_PAREN@[215; 216) "(" | ||
145 | IDENT@[216; 220) "test" | ||
146 | R_PAREN@[220; 221) ")" | ||
147 | R_BRACK@[221; 222) "]" | ||
148 | WHITESPACE@[222; 231) "\n " | ||
149 | ATTR@[231; 232) | ||
150 | POUND@[231; 232) "#" | ||
151 | ERROR@[232; 233) | ||
152 | EXCL@[232; 233) "!" | ||
153 | ARRAY_EXPR@[233; 250) | ||
154 | L_BRACK@[233; 234) "[" | ||
155 | CALL_EXPR@[234; 249) | ||
156 | PATH_EXPR@[234; 237) | ||
157 | PATH@[234; 237) | ||
158 | PATH_SEGMENT@[234; 237) | ||
159 | NAME_REF@[234; 237) | ||
160 | IDENT@[234; 237) "doc" | ||
161 | ARG_LIST@[237; 249) | ||
162 | L_PAREN@[237; 238) "(" | ||
163 | LITERAL@[238; 248) | ||
164 | STRING@[238; 248) "\"Nor here\"" | ||
165 | R_PAREN@[248; 249) ")" | ||
166 | R_BRACK@[249; 250) "]" | ||
167 | WHITESPACE@[250; 259) "\n " | ||
168 | MATCH_ARM@[259; 266) | ||
169 | PLACEHOLDER_PAT@[259; 260) | ||
170 | UNDERSCORE@[259; 260) "_" | ||
171 | WHITESPACE@[260; 261) " " | ||
172 | FAT_ARROW@[261; 263) "=>" | ||
173 | WHITESPACE@[263; 264) " " | ||
174 | TUPLE_EXPR@[264; 266) | ||
175 | L_PAREN@[264; 265) "(" | ||
176 | R_PAREN@[265; 266) ")" | ||
177 | COMMA@[266; 267) "," | ||
178 | WHITESPACE@[267; 276) "\n " | ||
179 | MATCH_ARM@[276; 283) | ||
180 | PLACEHOLDER_PAT@[276; 277) | ||
181 | UNDERSCORE@[276; 277) "_" | ||
182 | WHITESPACE@[277; 278) " " | ||
183 | FAT_ARROW@[278; 280) "=>" | ||
184 | WHITESPACE@[280; 281) " " | ||
185 | TUPLE_EXPR@[281; 283) | ||
186 | L_PAREN@[281; 282) "(" | ||
187 | R_PAREN@[282; 283) ")" | ||
188 | COMMA@[283; 284) "," | ||
189 | WHITESPACE@[284; 289) "\n " | ||
190 | R_CURLY@[289; 290) "}" | ||
191 | WHITESPACE@[290; 291) "\n" | ||
192 | R_CURLY@[291; 292) "}" | ||
193 | WHITESPACE@[292; 293) "\n" | ||
194 | error [52; 52): expected `[` | ||
195 | error [52; 52): expected pattern | ||
196 | error [53; 53): expected FAT_ARROW | ||
197 | error [78; 78): expected COMMA | ||
198 | error [161; 161): expected `[` | ||
199 | error [161; 161): expected pattern | ||
200 | error [162; 162): expected FAT_ARROW | ||
201 | error [232; 232): expected `[` | ||
202 | error [232; 232): expected pattern | ||
203 | error [233; 233): expected FAT_ARROW | ||
204 | error [250; 250): expected COMMA | ||