Returns the human-readable path for a single leaf node identified by its flat index. Only descends into the branch containing the target leaf, making it efficient for error reporting.
Arguments
- node
(
Node)
A tree node as returned bybuild_tree().- i
(
integer(1))
The flat index of the leaf (as stored inLeafNode$i).- prefix
(
character(1))
Path prefix. Used internally during recursion; callers should leave as"".