| 1 |
|
| 2 |
[ |
| 3 |
(statement_block) |
| 4 |
(function_declaration) |
| 5 |
(arrow_function) |
| 6 |
(function_expression) |
| 7 |
(component_declaration) |
| 8 |
(fragment_declaration) |
| 9 |
(class_declaration) |
| 10 |
(for_statement) |
| 11 |
(for_of_statement) |
| 12 |
(for_in_statement) |
| 13 |
(while_statement) |
| 14 |
(catch_clause) |
| 15 |
] @local.scope |
| 16 |
|
| 17 |
|
| 18 |
(component_declaration |
| 19 |
name: (identifier) @local.definition.function) |
| 20 |
|
| 21 |
(fragment_declaration |
| 22 |
name: (identifier) @local.definition.function) |
| 23 |
|
| 24 |
(function_declaration |
| 25 |
name: (identifier) @local.definition.function) |
| 26 |
|
| 27 |
(class_declaration |
| 28 |
name: (identifier) @local.definition.type) |
| 29 |
|
| 30 |
(method_definition |
| 31 |
name: (property_name) @local.definition.function.method) |
| 32 |
|
| 33 |
(variable_declarator |
| 34 |
name: (identifier) @local.definition.variable) |
| 35 |
|
| 36 |
(required_parameter |
| 37 |
pattern: (identifier) @local.definition.variable.parameter) |
| 38 |
|
| 39 |
(rest_parameter |
| 40 |
(identifier) @local.definition.variable.parameter) |
| 41 |
|
| 42 |
|
| 43 |
(identifier) @local.reference |
| 44 |
|
| 45 |
|
| 46 |
(import_specifier |
| 47 |
name: (identifier) @local.definition.namespace) |
| 48 |
|
| 49 |
(namespace_import |
| 50 |
(identifier) @local.definition.namespace) |
| 51 |
|
| 52 |
|
| 53 |
(export_specifier |
| 54 |
name: (identifier) @local.definition.namespace) |