Debian Codegraph @

runtime/queries/_javascript/locals.scm

raw symbols SCIP
1 ; Definitions
2 ;------------
3 ; Javascript and Typescript Treesitter grammars deviate when defining the
4 ; tree structure for parameters, so we need to address them in each specific
5 ; language instead of ecma.
6
7 ; (i)
8 (formal_parameters
9 (identifier) @local.definition.variable.parameter)
10
11 ; (i = 1)
12 (formal_parameters
13 (assignment_pattern
14 left: (identifier) @local.definition.variable.parameter))