rubyx/lib/vool/local_assignment.rb

15 lines
316 B
Ruby
Raw Normal View History

module Vool
class LocalAssignment < Assignment
def to_mom( compiler )
slot_def = compiler.slot_type_for(@name)
to = Mom::SlotDefinition.new(:message ,slot_def)
from = @value.slot_definition(compiler)
return chain_assign( Mom::SlotLoad.new(to,from) , compiler)
end
2018-07-20 19:06:14 +02:00
end
end