(function_declaration
  name: (identifier) @name) @definition.function

(method_declaration
  name: (identifier) @name) @definition.method

(class_declaration
  name: (binding_identifier) @name) @definition.class

(trait_declaration
  name: (binding_identifier) @name) @definition.interface

(import_statement
  module: (module_path) @name) @reference.module
