File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
anycode-typescript/queries Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
(method_definition) @scope
2
2
(function_declaration) @scope
3
- (function_expression) @scope
3
+ ;; (function_expression) @scope
4
+ (function) @scope
4
5
(arrow_function) @scope
5
6
[(class_body) (enum_body)] @scope
6
- (interface_declaration body: (interface_body) @scope )
7
+ ;; (interface_declaration body: (interface_body) @scope)
8
+ (interface_declaration body: (object_type) @scope )
7
9
(for_statement) @scope
8
10
(if_statement consequence: (_) @scope )
9
11
(if_statement alternative: (_) @scope )
13
15
(statement_block) @scope
14
16
15
17
(function_declaration name: (identifier) @local.escape )
16
- (function_expression name: (identifier) @local.escape )
18
+ ;; (function_expression name: (identifier) @local.escape)
19
+ (function name: (identifier) @local.escape )
17
20
(required_parameter (identifier) @local )
18
21
(optional_parameter (identifier) @local )
19
22
(catch_clause parameter: (identifier) @local )
You can’t perform that action at this time.
0 commit comments