Name the path walks after their entry points, keep the probe allocation-free, and record why the walks are four loops

This commit is contained in:
2026-09-28 00:26:33 +02:00
committed by Lillem4n
parent 917c93564f
commit 68033bd42f
8 changed files with 35 additions and 29 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ func renderEdges(n node) []renderEdge {
// contributes every variant, since any of them may be the one drawn. checkPath has
// already proved the tail resolves in every variant.
func pathLeaves(n node, tail []string) []node {
w := &proveWalk{tail: tail}
w := &pathCheck{tail: tail}
_, _ = w.walk(n, tail)
return w.leaves
}