@@ -13,19 +13,6 @@ import { childRangeSelector } from "../util/nodeSelectors";
13
13
const nodeMatchers : Partial <
14
14
Record < SimpleScopeTypeType , NodeMatcherAlternative >
15
15
> = {
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
-
29
16
argumentOrParameter : argumentMatcher (
30
17
"arguments" ,
31
18
"parameters" ,
@@ -39,10 +26,6 @@ const nodeMatchers: Partial<
39
26
} ) ,
40
27
) ,
41
28
42
- [ "private.switchStatementSubject" ] : "match_expression[value]" ,
43
- name : [ "*[name]" , "*[pattern]" ] ,
44
- functionName : "function_definition[name]" ,
45
-
46
29
// *[type] does not work here because while we want most of these we don't want "compound" types,
47
30
// eg `generic_type[type]`, because that will grab just the inner generic (the String of List[String])
48
31
// and as a rule we want to grab entire type definitions.
0 commit comments