Gather the family fence beside drawWalk.check in drawfence.go

This commit is contained in:
2026-09-28 02:37:32 +02:00
committed by Lillem4n
parent 2d506e79eb
commit 4a52085e8f
6 changed files with 222 additions and 232 deletions
+12
View File
@@ -456,3 +456,15 @@ func checkPath(n node, tail []string, level string) error {
_, err := (&pathCheck{level: level, tail: tail}).run(n)
return err
}
// joinSegments spells segments as a path: a selector attaches to the name before it.
func joinSegments(segs []string) string {
var b strings.Builder
for _, s := range segs {
if b.Len() > 0 && !isSelector(s) {
b.WriteByte('.')
}
b.WriteString(s)
}
return b.String()
}