2017-04-12 19:18:41 +02:00
|
|
|
module Vool
|
|
|
|
|
|
|
|
class LocalAssignment < Assignment
|
|
|
|
# used to collect frame information
|
|
|
|
def add_local( array )
|
|
|
|
array << @name
|
|
|
|
end
|
|
|
|
|
|
|
|
def to_mom( method )
|
2017-04-13 13:14:43 +02:00
|
|
|
if method.args_type.variable_index(@name)
|
|
|
|
type = :arguments
|
|
|
|
else
|
|
|
|
type = :frame
|
|
|
|
end
|
2018-03-15 06:16:17 +01:00
|
|
|
statements = @value.to_mom(method)
|
|
|
|
statements << @value.slot_class.new([:message , type , @name] , @value.slot_definition)
|
|
|
|
return statements
|
2017-04-12 19:18:41 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|