rename the XX_slot classes to SlottedXX
move to slotted and slots (wip)
This commit is contained in:
@@ -12,7 +12,7 @@ module Sol
|
||||
include Named
|
||||
def to_slot_definition(compiler)
|
||||
slot_def = compiler.slot_type_for(@name)
|
||||
SlotMachine::Slot.for(:message , slot_def)
|
||||
SlotMachine::Slotted.for(:message , slot_def)
|
||||
end
|
||||
def to_s(depth = 0)
|
||||
name.to_s
|
||||
@@ -25,7 +25,7 @@ module Sol
|
||||
class InstanceVariable < Expression
|
||||
include Named
|
||||
def to_slot_definition(_)
|
||||
SlotMachine::Slot.for(:message , [ :receiver , @name] )
|
||||
SlotMachine::Slotted.for(:message , [ :receiver , @name] )
|
||||
end
|
||||
# used to collect type information
|
||||
def add_ivar( array )
|
||||
@@ -52,7 +52,7 @@ module Sol
|
||||
get_named_class.single_class.instance_type
|
||||
end
|
||||
def to_slot_definition(_)
|
||||
return SlotMachine::Slot.for( get_named_class, [])
|
||||
return SlotMachine::Slotted.for( get_named_class, [])
|
||||
end
|
||||
def get_named_class
|
||||
Parfait.object_space.get_class_by_name(self.name)
|
||||
|
Reference in New Issue
Block a user