Answer prose round 2: resolvedRef names its two fields, checkCalcFields and refuseTwiceDrawn read on one pass, refuseSingleRead says why a calc's read stands, street_delivery states both rules, and Template.Fake claims nothing about names
This commit is contained in:
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/larvit/fejkdata/internal/invariant"
|
||||
)
|
||||
|
||||
// checkCalcFields checks each calc operand a field holds; an operand no field holds is a name,
|
||||
// which checkCalcNames checks once names resolve.
|
||||
// checkCalcFields runs checkOperands over each calc operand naming a field; an operand naming no
|
||||
// field is a name, which checkCalcNames checks once names resolve.
|
||||
func checkCalcFields(args []string, fields map[string]node) error {
|
||||
return checkOperands(args[0], builtinfunc.ParsedCalc(args[0]), func(name string) []node {
|
||||
if n, ok := fields[name]; ok {
|
||||
|
||||
Reference in New Issue
Block a user