@@ -156,15 +156,11 @@ const nodeMatchers: Partial<
156156 ) ,
157157 leadingMatcher ( [ "*.match_pattern![condition]" ] , [ "if" ] ) ,
158158 ) ,
159- functionCall : [ "call_expression" , "macro_invocation" , "struct_expression" ] ,
160- functionCallee : "call_expression[function]" ,
161- list : [ "array_expression" , "tuple_expression" ] ,
162159 collectionItem : argumentMatcher (
163160 "array_expression" ,
164161 "tuple_expression" ,
165162 "tuple_type" ,
166163 ) ,
167- namedFunction : "function_item" ,
168164 type : cascadingMatcher (
169165 leadingMatcher (
170166 [
@@ -191,8 +187,6 @@ const nodeMatchers: Partial<
191187 "array_type[element]" ,
192188 ) ,
193189 ) ,
194- functionName : [ "function_item[name]" ] ,
195- anonymousFunction : "closure_expression" ,
196190 argumentOrParameter : argumentMatcher (
197191 "arguments" ,
198192 "parameters" ,
@@ -221,8 +215,6 @@ const nodeMatchers: Partial<
221215 ) ,
222216 trailingMatcher ( [ "field_initializer[name]" , "field_pattern[name]" ] , [ ":" ] ) ,
223217 ) ,
224- class : [ "struct_item" , "struct_expression" , "enum_item" ] ,
225- className : [ "struct_item[name]" , "enum_item[name]" , "trait_item[name]" ] ,
226218 value : cascadingMatcher (
227219 leadingMatcher ( [ "let_declaration[value]" ] , [ "=" ] ) ,
228220 leadingMatcher (
@@ -238,7 +230,6 @@ const nodeMatchers: Partial<
238230 matcher ( patternFinder ( "else_clause" ) , elseExtractor ( "if_expression" ) ) ,
239231 matcher ( patternFinder ( "if_expression" ) , elseIfExtractor ( ) ) ,
240232 ) ,
241- [ "private.switchStatementSubject" ] : "match_expression[value]" ,
242233} ;
243234
244235export default createPatternMatchers ( nodeMatchers ) ;
0 commit comments