Function: treesit-fold-range-editorconfig-end-section

treesit-fold-range-editorconfig-end-section is a natively compiled function defined in treesit-fold.el.

Signature

(treesit-fold-range-editorconfig-end-section NODE)

Documentation

Return the section NODE's end point.

Source Code

;; Defined in /nix/store/mpy1l6b4hlzpp59l4vbahq83hqa821ci-emacs-packages-deps/share/emacs/site-lisp/elpa/treesit-fold-0.2.1/treesit-fold.el
(defun treesit-fold-range-editorconfig-end-section (node)
  "Return the section NODE's end point."
  (let ((pt (treesit-node-end node))
        (children (reverse (treesit-node-children node))))
    (or (cl-some (lambda (child)
                   (when (equal 'pair (treesit-node-type child))
                     (treesit-node-end child)))
                 children)
        pt)))