Function: php-ts-mode--parent-object

php-ts-mode--parent-object is a byte-compiled function defined in php-ts-mode.el.gz.

Signature

(php-ts-mode--parent-object NODE)

Documentation

Return the name of the object that own NODE.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
;;; Imenu

(defun php-ts-mode--parent-object (node)
  "Return the name of the object that own NODE."
  (treesit-parent-until
   node
   (lambda (n)
     (member (treesit-node-type n)
             '("class_declaration"
               "enum_declaration"
               "function_definition"
               "interface_declaration"
               "method_declaration"
               "namespace_definition"
               "trait_declaration")))))