Debian Codegraph @

Xtree-house/test-grammars/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) @_type
11 (arguments
12 (binary_operator
13 left: (call (arguments (variable) @local.definition.variable.parameter))
14 operator: "::") @local.scope))
15 (#match? @_type "(type|opaque)"))
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 pattern: (arguments (variable) @local.definition.variable.parameter)) @local.scope
22
23 (variable) @local.reference