예제 #1
0
        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)));
        }
예제 #2
0
 public StructInstance(StructScope scope, Struct owner)
 {
     Scope = scope;
     Owner = owner;
 }