2024-01-21 22:05:44 +09:00
|
|
|
(function_declaration
|
|
|
|
|
name: (identifier) @local.definition.function) ;@function
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2023-07-04 04:12:21 -04:00
|
|
|
(var_declaration
|
2024-03-21 20:44:35 +09:00
|
|
|
var_list: (expression_list
|
|
|
|
|
(reference_expression
|
|
|
|
|
(identifier) @local.definition.var)))
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2024-01-21 22:05:44 +09:00
|
|
|
(function_declaration
|
|
|
|
|
name: (identifier) @local.definition.function)
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
(const_declaration
|
|
|
|
|
(const_definition
|
|
|
|
|
name: (identifier) @local.definition.var))
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
((call_expression
|
2024-03-21 20:44:35 +09:00
|
|
|
name: (reference_expression
|
|
|
|
|
(identifier)) @local.reference)
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! reference.kind "call"))
|
2022-02-22 17:36:44 +03:00
|
|
|
|
|
|
|
|
((call_expression
|
2024-03-21 20:44:35 +09:00
|
|
|
name: (selector_expression
|
|
|
|
|
field: (reference_expression
|
|
|
|
|
(identifier) @local.definition.function)))
|
2024-01-06 15:05:50 +09:00
|
|
|
(#set! reference.kind "call"))
|
2022-02-22 17:36:44 +03:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(source_file) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(function_declaration) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(if_expression) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(block) @local.scope
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(for_statement) @local.scope
|