start delegating scope matters to the compiler(s)
slot_type_for to return the slot way to access variable this is off course version 0.0.1 alpha, no types are checked or errors handled
This commit is contained in:
@ -3,12 +3,8 @@ module Vool
|
||||
class LocalAssignment < Assignment
|
||||
|
||||
def to_mom( compiler )
|
||||
if compiler.method.arguments_type.variable_index(@name)
|
||||
type = :arguments
|
||||
else
|
||||
type = :frame
|
||||
end
|
||||
to = Mom::SlotDefinition.new(:message ,[ type , @name])
|
||||
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
|
||||
|
Reference in New Issue
Block a user