Shouldn't `visit_path`/`walk_path` take `Option<NodeId>` instead?