2018-06-29 22:46:39 +03:00
|
|
|
module Vool
|
|
|
|
|
|
|
|
class LocalAssignment < Assignment
|
|
|
|
|
2018-07-05 14:02:38 +03:00
|
|
|
def to_mom( compiler )
|
2018-07-09 17:53:56 +03:00
|
|
|
slot_def = compiler.slot_type_for(@name)
|
|
|
|
to = Mom::SlotDefinition.new(:message ,slot_def)
|
2018-07-05 14:02:38 +03:00
|
|
|
from = @value.slot_definition(compiler)
|
|
|
|
return chain_assign( Mom::SlotLoad.new(to,from) , compiler)
|
2018-06-29 22:46:39 +03:00
|
|
|
end
|
2018-07-20 20:06:14 +03:00
|
|
|
|
2018-06-29 22:46:39 +03:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|