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