Debian Codegraph @

runtime/queries/erlang/locals.scm

raw symbols SCIP
1 ; Specs and Callbacks
2 (attribute
3 (stab_clause
4 pattern: (arguments (variable)? @local.definition.variable.parameter)
5 ; If a spec uses a variable as the return type (and later a `when` clause to type it):
6 body: (variable)? @local.definition.variable.parameter)) @local.scope
7
8 ; parametric `-type`s
9 ((attribute
10 name: (atom) @_keyword
11 (arguments
12 (binary_operator
13 left: (call (arguments (variable) @local.definition.variable.parameter))
14 operator: "::") @local.scope))
15 (#any-of? @_keyword "type" "opaque" "nominal"))
16
17 ; `fun`s
18 (anonymous_function (stab_clause pattern: (arguments (variable) @local.definition.variable.parameter))) @local.scope
19
20 ; Ordinary functions
21 ((function_clause
22 pattern: (arguments (variable) @local.definition.variable.parameter)) @local.scope
23 (#not-match? @local.definition.variable.parameter "^_"))
24
25 (variable) @local.reference
26 (macro (variable)) @_