| 1 |
|
| 2 |
(import_declaration (identifier) @local.definition.namespace) |
| 3 |
(function_declaration name: (simple_identifier) @local.definition.function) |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
(parameter name: (simple_identifier) @local.definition.variable.parameter) |
| 8 |
(lambda_parameter name: (simple_identifier) @local.definition.variable.parameter) |
| 9 |
|
| 10 |
|
| 11 |
[ |
| 12 |
(for_statement) |
| 13 |
(while_statement) |
| 14 |
(repeat_while_statement) |
| 15 |
(do_statement) |
| 16 |
(if_statement) |
| 17 |
(guard_statement) |
| 18 |
(switch_statement) |
| 19 |
(property_declaration) |
| 20 |
(function_declaration) |
| 21 |
(class_declaration) |
| 22 |
(protocol_declaration) |
| 23 |
(lambda_literal) |
| 24 |
] @local.scope |
| 25 |
|
| 26 |
(simple_identifier) @local.reference |
| 27 |
|
| 28 |
|
| 29 |
(call_expression (simple_identifier) @_) |
| 30 |
(navigation_suffix (simple_identifier) @_) |
| 31 |
(parameter external_name: (simple_identifier) @_) |