2023-02-20 08:10:43 -05:00
|
|
|
[
|
|
|
|
|
(class_directive)
|
|
|
|
|
(expression)
|
|
|
|
|
(annotation_directive)
|
|
|
|
|
(array_data_directive)
|
|
|
|
|
(method_definition)
|
|
|
|
|
(packed_switch_directive)
|
|
|
|
|
(sparse_switch_directive)
|
|
|
|
|
(subannotation_directive)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.scope
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(identifier)
|
|
|
|
|
(class_identifier)
|
|
|
|
|
(label)
|
|
|
|
|
(jmp_label)
|
2023-07-22 15:29:32 +02:00
|
|
|
] @local.reference
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(enum_reference
|
2023-07-22 15:29:32 +02:00
|
|
|
(field_identifier) @local.definition.enum)
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
((field_definition
|
2023-04-17 22:24:59 -04:00
|
|
|
(access_modifiers) @_mod
|
2023-07-22 15:29:32 +02:00
|
|
|
(field_identifier) @local.definition.enum)
|
2023-02-20 08:10:43 -05:00
|
|
|
(#eq? @_mod "enum"))
|
|
|
|
|
|
|
|
|
|
(field_definition
|
2023-07-22 15:29:32 +02:00
|
|
|
(field_identifier) @local.definition.field
|
|
|
|
|
(field_type) @local.definition.associated)
|
2023-02-20 08:10:43 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(annotation_key) @local.definition.field
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(method_definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(method_signature
|
|
|
|
|
(method_identifier) @local.definition.method))
|
2023-02-20 08:10:43 -05:00
|
|
|
|
2023-07-22 15:29:32 +02:00
|
|
|
(param_identifier) @local.definition.parameter
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(annotation_directive
|
2023-07-22 15:29:32 +02:00
|
|
|
(class_identifier) @local.definition.type)
|
2023-02-20 08:10:43 -05:00
|
|
|
|
|
|
|
|
(class_directive
|
2023-07-22 15:29:32 +02:00
|
|
|
(class_identifier) @local.definition.type)
|