elisp-tree-sitter icon indicating copy to clipboard operation
elisp-tree-sitter copied to clipboard

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

Open nordlow opened this issue 3 years ago • 0 comments

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.

nordlow avatar Aug 24 '22 08:08 nordlow