emacs-tree-sitter / elisp-tree-sitter

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

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

Open nordlow opened 2 years ago

nordlow commented 2 years 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.