Debian Codegraph @

runtime/queries/sourcepawn/locals.scm

raw symbols SCIP
1 ; Scopes
2
3 [
4 (function_definition)
5 (function_declaration)
6 (block)
7 ] @local.scope
8
9 ; Definitions
10
11 (parameter_declaration
12 name: (identifier) @local.definition.variable.parameter)
13
14 (variable_declaration
15 name: (identifier) @local.definition.variable)
16 (old_variable_declaration
17 name: (identifier) @local.definition.variable)
18
19 ; References
20
21 (identifier) @local.reference
22
23 ; Member/field names are not variable references.
24 (field_access
25 field: (identifier) @_)
26 (scope_access
27 field: (identifier) @_)
28
29 ; Function names in call position are not variable references.
30 (call_expression
31 function: (identifier) @_)
32
33 ; Named argument labels are not variable references.
34 (named_arg
35 arg_name: (identifier) @_)