rubyx/lib/vool/ivar_assignment.rb

13 lines
280 B
Ruby
Raw Normal View History

2018-07-20 13:22:26 +02:00
module Vool
class IvarAssignment < Assignment
def to_mom( compiler )
to = Mom::SlotDefinition.new(:message ,[ :receiver , @name])
from = @value.slot_definition(compiler)
return chain_assign( Mom::SlotLoad.new(self,to,from) , compiler)
2018-07-20 13:22:26 +02:00
end
end
end