Leave the fence division to the decision that records it

This commit is contained in:
2026-09-21 18:48:21 +02:00
committed by Lillem4n
parent 88be57ea46
commit 48495944fa
4 changed files with 10 additions and 9 deletions
+1 -4
View File
@@ -8,10 +8,7 @@ import (
// heldCheck rejects every route to a held sibling name except the ones that read its
// draw. An expansion holds one draw of that name; anything else that renders it draws
// again, and the two disagree. checkNoOverlap settles the spellings within one format
// (a token, an operand); this settles the rest — a reference, whether it sits in that
// format or in anything the format renders, however deep. A reference path is held
// for the whole render instead, which drawCheck fences.
// again, and the two disagree.
func heldCheck(path string, n node) error {
t, ok := n.(*template)
if !ok || len(t.held) == 0 {