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
@@ -32,7 +32,7 @@ func tableReadOf(head node, a arm, leaf node) *tableRead {
if !isTable {
return nil
}
probe := &probeWalk{}
probe := &pathProbe{drawn: map[*table]bool{}}
_, _ = probe.walk(t, a.tail)
tr := &tableRead{headTable: t, pins: probe.pins, drawn: probe.drawn}
written := a.spelling[:len(a.spelling)-len(joinSegments(a.tail))]