Function: treesit-fold-find-children

treesit-fold-find-children is a natively compiled function defined in treesit-fold-util.el.

Signature

(treesit-fold-find-children NODE TYPE)

Documentation

Search through the children of NODE to find all with type equal to TYPE; then return that list.

Source Code

;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold-util.el
(defun treesit-fold-find-children (node type)
  "Search through the children of NODE to find all with type equal to TYPE;
then return that list."
  (cl-remove-if-not (lambda (child) (treesit-fold--compare-type child type))
                    (treesit-node-children node)))