implements argument assignment

This commit is contained in:
Torsten Ruger
2017-04-13 14:14:43 +03:00
parent d2d845266e
commit 9dd4409009
6 changed files with 89 additions and 12 deletions

View File

@ -7,7 +7,12 @@ module Vool
end
def to_mom( method )
Mom::SlotConstant.new([:message , :frame , @name] , @value)
if method.args_type.variable_index(@name)
type = :arguments
else
type = :frame
end
Mom::SlotConstant.new([:message , type , @name] , @value)
end
end