Function: combobulate-all-nodes-at-point

combobulate-all-nodes-at-point is a natively compiled function defined in combobulate-navigation.el.

Signature

(combobulate-all-nodes-at-point &optional BACKWARD ANONYMOUS)

Documentation

Returns all nodes that start at point.

The returned list is ordered smallest-to-largest by the node's extent.

Source Code

;; Defined in /nix/store/b5fvrwzi3zvkabyzx0in6gw1cj963z46-emacs-packages-deps/share/emacs/site-lisp/combobulate-navigation.el
(defun combobulate-all-nodes-at-point (&optional backward anonymous)
  "Returns all nodes that start at `point'.

The returned list is ordered smallest-to-largest by the node's
extent."
  (let ((nodes)
        (sub-node (combobulate-node-descendant-for-range
                   (combobulate-root-node) (if backward (1- (point)) (point)) (point) anonymous)))
    (while (and sub-node (= (if backward (combobulate-node-end sub-node) (combobulate-node-start sub-node)) (point)))
      (push sub-node nodes)
      (setq sub-node (combobulate-node-parent sub-node)))
    (reverse nodes)))