Function: treesit-fold-range-beancount-transaction
treesit-fold-range-beancount-transaction is a natively compiled
function defined in treesit-fold.el.
Signature
(treesit-fold-range-beancount-transaction NODE OFFSET)
Documentation
Define fold range for transaction in Beancount.
For arguments NODE and OFFSET, see function treesit-fold-range-seq for
more information.
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-beancount-transaction (node offset)
"Define fold range for `transaction' in Beancount.
For arguments NODE and OFFSET, see function `treesit-fold-range-seq' for
more information."
(when-let* ((beg (treesit-node-start node))
(beg (treesit-fold--eol beg))
(end (1- (treesit-node-end node))))
(treesit-fold--cons-add (cons beg end) offset)))