Ejemplo n.º 1
0
 public override Slot CreateSlot(Slot instance)
 {
     Debug.Assert(instance != null && typeof(CodeContext).IsAssignableFrom(instance.Type));
     Slot slot = new LocalNamedFrameSlot(instance, _name);
     if (_type != slot.Type) {
         slot = new CastSlot(slot, _type);
     }
     return slot;
 }
Ejemplo n.º 2
0
            public override Slot CreateSlot(Slot instance)
            {
                Debug.Assert(instance != null && typeof(CodeContext).IsAssignableFrom(instance.Type));
                Slot slot = new LocalNamedFrameSlot(instance, _name);

                if (_type != slot.Type)
                {
                    slot = new CastSlot(slot, _type);
                }
                return(slot);
            }