2018-07-20 13:22:26 +02:00
|
|
|
module Vool
|
|
|
|
|
|
|
|
class IvarAssignment < Assignment
|
|
|
|
|
2019-08-16 13:09:56 +02:00
|
|
|
def to_s(depth = 0)
|
|
|
|
"@#{super(depth)}"
|
|
|
|
end
|
|
|
|
|
2018-07-20 13:22:26 +02:00
|
|
|
def to_mom( compiler )
|
|
|
|
to = Mom::SlotDefinition.new(:message ,[ :receiver , @name])
|
|
|
|
from = @value.slot_definition(compiler)
|
2019-08-07 11:06:06 +02:00
|
|
|
return chain_assign( Mom::SlotLoad.new(self,to,from) , compiler)
|
2018-07-20 13:22:26 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|