; JavaScript scope context query

(function_declaration) @context
(function_declaration name: (identifier) @name)

(class_declaration) @context
(class_declaration name: (identifier) @name)

(method_definition) @context
(method_definition name: (property_identifier) @name)

(arrow_function) @context
