(function_declaration name: [(identifier) (dot_index_expression field: (identifier) @name)]) @definition.function
(function_declaration name: (method_index_expression method: (identifier) @name)) @definition.method
(assignment_statement (variable_list name: (identifier) @name) (expression_list value: (function_definition))) @definition.function
(function_call name: [(identifier) (dot_index_expression field: (identifier) @name) (method_index_expression method: (identifier) @name)]) @reference.call
(identifier) @reference.identifier
