@@ -156,15 +156,11 @@ const nodeMatchers: Partial<
156
156
) ,
157
157
leadingMatcher ( [ "*.match_pattern![condition]" ] , [ "if" ] ) ,
158
158
) ,
159
- functionCall : [ "call_expression" , "macro_invocation" , "struct_expression" ] ,
160
- functionCallee : "call_expression[function]" ,
161
- list : [ "array_expression" , "tuple_expression" ] ,
162
159
collectionItem : argumentMatcher (
163
160
"array_expression" ,
164
161
"tuple_expression" ,
165
162
"tuple_type" ,
166
163
) ,
167
- namedFunction : "function_item" ,
168
164
type : cascadingMatcher (
169
165
leadingMatcher (
170
166
[
@@ -191,8 +187,6 @@ const nodeMatchers: Partial<
191
187
"array_type[element]" ,
192
188
) ,
193
189
) ,
194
- functionName : [ "function_item[name]" ] ,
195
- anonymousFunction : "closure_expression" ,
196
190
argumentOrParameter : argumentMatcher (
197
191
"arguments" ,
198
192
"parameters" ,
@@ -221,8 +215,6 @@ const nodeMatchers: Partial<
221
215
) ,
222
216
trailingMatcher ( [ "field_initializer[name]" , "field_pattern[name]" ] , [ ":" ] ) ,
223
217
) ,
224
- class : [ "struct_item" , "struct_expression" , "enum_item" ] ,
225
- className : [ "struct_item[name]" , "enum_item[name]" , "trait_item[name]" ] ,
226
218
value : cascadingMatcher (
227
219
leadingMatcher ( [ "let_declaration[value]" ] , [ "=" ] ) ,
228
220
leadingMatcher (
@@ -238,7 +230,6 @@ const nodeMatchers: Partial<
238
230
matcher ( patternFinder ( "else_clause" ) , elseExtractor ( "if_expression" ) ) ,
239
231
matcher ( patternFinder ( "if_expression" ) , elseIfExtractor ( ) ) ,
240
232
) ,
241
- [ "private.switchStatementSubject" ] : "match_expression[value]" ,
242
233
} ;
243
234
244
235
export default createPatternMatchers ( nodeMatchers ) ;
0 commit comments