Debian Codegraph @

runtime/queries/vhdl/locals.scm

raw symbols SCIP
1 ; Scopes
2
3 [
4 (subprogram_definition)
5 (process_statement)
6 ] @local.scope
7
8 ; Definitions
9
10 ; Subprogram parameters: each interface declaration's identifier_list holds the
11 ; parameter name(s), reachable regardless of the constant:/generic: field label.
12 (parameter_list_specification
13 (interface_list
14 (_
15 (identifier_list
16 (identifier) @local.definition.variable.parameter))))
17
18 ; Locally declared signals/variables/constants.
19 (signal_declaration
20 (identifier_list
21 (identifier) @local.definition.variable))
22 (variable_declaration
23 (identifier_list
24 (identifier) @local.definition.variable))
25 (constant_declaration
26 (identifier_list
27 (identifier) @local.definition.constant))
28
29 ; References
30
31 ; A use of a name is `(name (identifier) ...)`; the base identifier may resolve.
32 ; Member identifiers live inside (selection ...) and are excluded by this shape.
33 (name
34 (identifier) @local.reference)