technical-docs: document tree-walking API