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;
 }
Example #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);
            }