Rename SlotDefinition to Slot

And the derived XXDefinitions to XXSlot

Just to be more consistent
And possibly free the Definition for the Language side
This commit is contained in:
2020-02-11 16:19:52 +07:00
parent ec8794191d
commit 3c762c4fe7
45 changed files with 102 additions and 106 deletions

View File

@@ -12,7 +12,7 @@ module Sol
include Named
def to_slot_definition(compiler)
slot_def = compiler.slot_type_for(@name)
SlotMachine::SlotDefinition.for(:message , slot_def)
SlotMachine::Slot.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::SlotDefinition.for(:message , [ :receiver , @name] )
SlotMachine::Slot.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::SlotDefinition.for( get_named_class, [])
return SlotMachine::Slot.for( get_named_class, [])
end
def get_named_class
Parfait.object_space.get_class_by_name(self.name)