| 1 | (function_definition name: (identifier) @local.definition.function ?) @local.scope |
| 2 | (function_arguments (identifier)* @local.definition.variable.parameter) |
| 3 | |
| 4 | (lambda (arguments (identifier) @local.definition.variable.parameter)) @local.scope |
| 5 | |
| 6 | (identifier) @local.reference |
| 7 | |
| 8 | ; A call's function name and a field member name are not variable references; |
| 9 | ; cancel resolution so a same-named local doesn't capture them. |
| 10 | (function_call |
| 11 | name: (identifier) @_) |
| 12 | (field_expression |
| 13 | field: (identifier) @_) |