emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
815 stars 73 forks source link

`tsc-traverse-mapc` doesn't forward DEPTH to FUNC when PROPS is fed nil #238

Open nordlow opened 1 year ago

nordlow commented 1 year ago

Afaict

defun tsc-traverse-mapc (func tree-or-node &optional props)

lacks the ability to pass depth when props is to false.

Could you please modify the parameters of tsc-traverse-mapc so that an optional DEPTH parameter is passed to the FUNC when PROPS is set to nil in the call to tsc-traverse-mapc?

I need both the node and depth to enhance tree-sitter-debug output.