d84d208192
especially when the value is a send that needs normalising fixes several broken tests
18 lines
387 B
Ruby
18 lines
387 B
Ruby
module Vool
|
|
|
|
class LocalAssignment < Assignment
|
|
|
|
def to_mom( method )
|
|
if method.arguments_type.variable_index(@name)
|
|
type = :arguments
|
|
else
|
|
type = :frame
|
|
end
|
|
to = Mom::SlotDefinition.new(:message ,[ type , @name])
|
|
from = @value.slot_definition(method)
|
|
return chain_assign( Mom::SlotLoad.new(to,from) , method)
|
|
end
|
|
end
|
|
|
|
end
|