public IValue Struct(Struct strut) { var scope = new StructScope(); foreach (var field in strut.Fields) // initialize all fields with () { scope.DefineVariable(field.Name, _uninitialized); } return(new StructInstanceValue(new StructInstance(scope, strut))); }
public StructInstance(StructScope scope, Struct owner) { Scope = scope; Owner = owner; }