Beispiel #1
0
 public override Value Evaluate()
 {
     Reject(Regions.FieldExists(fieldName), LOCATION, $"Field {fieldName} is already defined");
     Regions.CreateReadOnlyVariable(fieldName);
     Regions[fieldName] = thunk;
     result             = thunk.ToString();
     return(null);
 }
Beispiel #2
0
        public override Value Evaluate()
        {
            Regions.FieldExists(fieldName).Must().Not.BeTrue().OrThrow(LOCATION, () => $"Field {fieldName} is already defined");
            Regions.CreateReadOnlyVariable(fieldName);
            Regions[fieldName] = thunk;
            result             = thunk.ToString();

            return(null);
        }