collapsed slot classes into one

different slot operation have different right sides
mom assignment tests work again
157 others don’t
This commit is contained in:
Torsten Ruger
2018-03-15 20:33:38 +05:30
parent 3247c2036c
commit 79bf416e58
23 changed files with 140 additions and 233 deletions

View File

@ -1,9 +1,10 @@
module Vool
class LocalAssignment < Assignment
# used to collect frame information
def add_local( array )
array << @name
def normalize
super
return LocalAssignment.new(@name , @value)
end
def to_mom( method )
@ -12,9 +13,9 @@ module Vool
else
type = :frame
end
statements = @value.to_mom(method)
statements << @value.slot_class.new([:message , type , @name] , @value.slot_definition)
return statements
to = Mom::SlotDefinition.new(:message ,[ type , @name])
from = @value.slot_definition(method)
return chain_assign( Mom::SlotLoad.new(to,from) , method)
end
end