@@ -13,19 +13,6 @@ import { childRangeSelector } from "../util/nodeSelectors";
1313const nodeMatchers : Partial <
1414 Record < SimpleScopeTypeType , NodeMatcherAlternative >
1515> = {
16- // treating classes = classlike
17- class : [ "class_definition" , "object_definition" , "trait_definition" ] ,
18- className : [
19- "class_definition[name]" ,
20- "object_definition[name]" ,
21- "trait_definition[name]" ,
22- ] ,
23-
24- // list.size(), does not count foo.size (field_expression), or foo size (postfix_expression)
25- functionCall : "call_expression" ,
26- namedFunction : "function_definition" ,
27- anonymousFunction : "lambda_expression" ,
28-
2916 argumentOrParameter : argumentMatcher (
3017 "arguments" ,
3118 "parameters" ,
@@ -39,10 +26,6 @@ const nodeMatchers: Partial<
3926 } ) ,
4027 ) ,
4128
42- [ "private.switchStatementSubject" ] : "match_expression[value]" ,
43- name : [ "*[name]" , "*[pattern]" ] ,
44- functionName : "function_definition[name]" ,
45-
4629 // *[type] does not work here because while we want most of these we don't want "compound" types,
4730 // eg `generic_type[type]`, because that will grab just the inner generic (the String of List[String])
4831 // and as a rule we want to grab entire type definitions.
0 commit comments