| 1 | ; Scopes |
| 2 | |
| 3 | [ |
| 4 | (declProc) |
| 5 | (block) |
| 6 | ] @local.scope |
| 7 | |
| 8 | ; Definitions |
| 9 | |
| 10 | (declArg |
| 11 | name: (identifier) @local.definition.variable.parameter) |
| 12 | |
| 13 | (declVar |
| 14 | name: (identifier) @local.definition.variable) |
| 15 | |
| 16 | ; References |
| 17 | |
| 18 | (identifier) @local.reference |
| 19 | |
| 20 | ; The rhs of `a.b` is a member access, not a variable reference. |
| 21 | (exprDot |
| 22 | rhs: (identifier) @_) |
| 23 | |
| 24 | ; Procedure/function names in call position are not variable references. |
| 25 | (exprCall |
| 26 | entity: (identifier) @_) |