| 1 |
|
| 2 |
(module) @local.scope |
| 3 |
|
| 4 |
(class_definition |
| 5 |
body: (block |
| 6 |
(expression_statement |
| 7 |
(assignment |
| 8 |
left: (identifier) @local.definition.variable)))) @local.scope |
| 9 |
|
| 10 |
(class_definition |
| 11 |
body: (block |
| 12 |
(expression_statement |
| 13 |
(assignment |
| 14 |
left: (_ |
| 15 |
(identifier) @local.definition.variable))))) @local.scope |
| 16 |
|
| 17 |
|
| 18 |
(aliased_import |
| 19 |
alias: (identifier) @local.definition.namespace) |
| 20 |
|
| 21 |
(import_statement |
| 22 |
name: (dotted_name |
| 23 |
(identifier) @local.definition.namespace)) |
| 24 |
|
| 25 |
(import_from_statement |
| 26 |
name: (dotted_name |
| 27 |
(identifier) @local.definition.namespace)) |
| 28 |
|
| 29 |
|
| 30 |
(parameters |
| 31 |
(identifier) @local.definition.variable.parameter) |
| 32 |
|
| 33 |
(default_parameter |
| 34 |
(identifier) @local.definition.variable.parameter) |
| 35 |
|
| 36 |
(typed_parameter |
| 37 |
(identifier) @local.definition.variable.parameter) |
| 38 |
|
| 39 |
(typed_default_parameter |
| 40 |
(identifier) @local.definition.variable.parameter) |
| 41 |
|
| 42 |
|
| 43 |
(parameters |
| 44 |
(list_splat_pattern |
| 45 |
(identifier) @local.definition.variable)) |
| 46 |
|
| 47 |
|
| 48 |
(parameters |
| 49 |
(dictionary_splat_pattern |
| 50 |
(identifier) @local.definition.variable.parameter)) |
| 51 |
|
| 52 |
(class_definition |
| 53 |
body: (block |
| 54 |
(function_definition |
| 55 |
name: (identifier) @local.definition.function))) |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
(for_in_loop |
| 60 |
left: (pattern_list |
| 61 |
(identifier) @local.definition.variable)) |
| 62 |
|
| 63 |
(for_in_loop |
| 64 |
left: (tuple_pattern |
| 65 |
(identifier) @local.definition.variable)) |
| 66 |
|
| 67 |
(for_in_loop |
| 68 |
left: (identifier) @local.definition.variable) |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
(for_in_clause |
| 74 |
left: (identifier) @local.definition.variable) |
| 75 |
|
| 76 |
(for_in_clause |
| 77 |
left: (tuple_pattern |
| 78 |
(identifier) @local.definition.variable)) |
| 79 |
|
| 80 |
(for_in_clause |
| 81 |
left: (pattern_list |
| 82 |
(identifier) @local.definition.variable)) |
| 83 |
|
| 84 |
(dictionary_comprehension) @local.scope |
| 85 |
|
| 86 |
(list_comprehension) @local.scope |
| 87 |
|
| 88 |
(set_comprehension) @local.scope |
| 89 |
|
| 90 |
|
| 91 |
(assignment |
| 92 |
left: (identifier) @local.definition.variable) |
| 93 |
|
| 94 |
(assignment |
| 95 |
left: (pattern_list |
| 96 |
(identifier) @local.definition.variable)) |
| 97 |
|
| 98 |
(assignment |
| 99 |
left: (tuple_pattern |
| 100 |
(identifier) @local.definition.variable)) |
| 101 |
|
| 102 |
(assignment |
| 103 |
left: (attribute |
| 104 |
(identifier) |
| 105 |
(identifier) @local.definition.variable)) |
| 106 |
|
| 107 |
|
| 108 |
(named_expression |
| 109 |
(identifier) @local.definition.variable) |
| 110 |
|
| 111 |
(as_pattern |
| 112 |
alias: (as_pattern_target) @local.definition.variable) |
| 113 |
|
| 114 |
|
| 115 |
(identifier) @local.reference |