aboutsummaryrefslogblamecommitdiff
path: root/runtime/queries/ecma/locals.scm
blob: cc5f2e14f8fc00683d73dc6830da105884310050 (plain) (tree)



























                                            
; Scopes
;-------

[
  (statement_block)
  (function)
  (arrow_function)
  (function_declaration)
  (method_definition)
] @local.scope

; Definitions
;------------

(pattern/identifier) @local.definition

(pattern/rest_pattern 
  (identifier) @local.definition)
  
(arrow_function
  parameter: (identifier) @local.definition)

(variable_declarator
  name: (identifier) @local.definition)

; References
;------------

(identifier) @local.reference