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:
2026-10-07 01:18:05 +02:00
committed by Lillem4n
parent 1419673b96
commit ac6158e841
5 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -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 {