2024-01-06 15:05:50 +09:00
|
|
|
; Definitions
|
2021-08-05 21:58:39 -04:00
|
|
|
(variable_declarator
|
2024-01-06 15:05:50 +09:00
|
|
|
.
|
|
|
|
|
(identifier) @local.definition.var)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(variable_declarator
|
|
|
|
|
(tuple_pattern
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.var))
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(declaration_expression
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.var)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
2024-05-03 20:10:58 -04:00
|
|
|
(foreach_statement
|
2023-07-22 15:29:32 +02:00
|
|
|
left: (identifier) @local.definition.var)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
2024-05-03 20:10:58 -04:00
|
|
|
(foreach_statement
|
2024-03-21 20:44:35 +09:00
|
|
|
left: (tuple_pattern
|
|
|
|
|
(identifier) @local.definition.var))
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(parameter
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.parameter)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(method_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.method)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(local_function_statement
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition.method)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(property_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(type_parameter
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.definition.type)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
|
|
|
|
(class_declaration
|
2023-07-22 15:29:32 +02:00
|
|
|
name: (identifier) @local.definition)
|
2021-08-05 21:58:39 -04:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2021-08-05 21:58:39 -04:00
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
; Scope
|
2023-07-22 15:29:32 +02:00
|
|
|
(block) @local.scope
|