Merge the two reference-path walks, and correct the bare reference Decision, a stale comment and the draw map spellings
Tests / vet + fmt + tests (pull_request) Successful in 1m8s

This commit is contained in:
2026-09-16 09:55:58 +02:00
parent 9f4331a1f3
commit c60ebb3faa
3 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ func unreachableInChoice(c *choice, want string) error {
// checkPath proves a dotted tail resolves whichever way the draws go — a choice
// must carry the rest of the path in the set every variant shares — and that no
// level a path reads carries a repeat or a group, which one draw of it could not
// level a path reads carries a repeat or a drawGroup, which one draw of it could not
// apply. So a path that validates here resolves on every render, and a typo is a
// New-time error.
func checkPath(n node, tail []string, level string) error {