Move checkField to valueproof.go and rename checkPath to checkResolves

This commit is contained in:
2026-09-30 21:43:24 +02:00
committed by Lillem4n
parent cb7b43609f
commit 698ac036d5
7 changed files with 37 additions and 39 deletions
+2 -2
View File
@@ -472,12 +472,12 @@ func unreachableInChoice(c *choice, want string) error {
return fmt.Errorf("not every variant of this %d-way choice carries %q; all carry %v", len(c.items), want, offered)
}
func checkPath(n node, tail []string, level string) error {
func checkResolves(n node, tail []string, level string) error {
_, err := (&pathCheck{level: level, tail: tail}).run(n)
return err
}
// compilePath compiles a path checkPath proved.
// compilePath compiles a path checkResolves proved.
func compilePath(n node, tail []string) pathCheck {
w := pathCheck{tail: tail}
if _, err := w.run(n); err != nil {