Move checkField to valueproof.go and rename checkPath to checkResolves
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user