Draw a walk's rows and variants through pathDraws, off the pin set and the walk's signature

This commit is contained in:
2026-09-24 13:11:12 +02:00
committed by Lillem4n
parent c77a2e2c93
commit 9cbd8841fe
12 changed files with 110 additions and 100 deletions
+2 -2
View File
@@ -45,10 +45,10 @@ func (f *Generator) Fake(path string) (string, error) {
func descend(s *session, root node, segments []string, sc renderScope) (node, error) {
// Walked once without drawing first, so a path that fails moves no seeded stream.
var probe pinSet
if _, err := walkPath(nil, root, segments, pathWalk{pins: &probe}); err != nil {
if _, err := walkPath(root, segments, pathWalk{pins: &probe}); err != nil {
return nil, err
}
return walkPath(s, root, segments, pathWalk{pins: &sc.hold().pins})
return walkPath(root, segments, pathWalk{pins: &sc.hold().pins, draws: &pathDraws{s: s}})
}
// render evaluates a compiled node to a string. compile validates every node up