| 1 | (class_declaration |
| 2 | name: (identifier) @definition.class) |
| 3 | |
| 4 | (interface_declaration |
| 5 | name: (identifier) @definition.interface) |
| 6 | |
| 7 | (record_declaration |
| 8 | name: (identifier) @definition.class) |
| 9 | |
| 10 | (enum_declaration |
| 11 | name: (identifier) @definition.class) |
| 12 | |
| 13 | (method_declaration |
| 14 | name: (identifier) @definition.function) |
| 15 | |
| 16 | (constructor_declaration |
| 17 | name: (identifier) @definition.function) |
| 18 | |
| 19 | (compact_constructor_declaration |
| 20 | name: (identifier) @definition.function) |
| 21 | |
| 22 | (field_declaration |
| 23 | declarator: (variable_declarator |
| 24 | name: (identifier) @definition.constant)) |
| 25 | |
| 26 | (enum_constant |
| 27 | name: (identifier) @definition.constant) |