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

@ -4,7 +4,7 @@ module Vool
def initialize( name , args , body , clazz = nil)
@name , @args , @body = name , args , body
@body = ScopeStatement.new([]) unless body
raise "no bod" unless body
@clazz = clazz
end
@ -34,7 +34,7 @@ module Vool
@clazz.add_method( method )
typed_method = method.create_parfait_method(clazz.instance_type)
compiler = Risc::MethodCompiler.new( typed_method ).init_method
head = @body.to_mom( method ).flatten
head = @body.to_mom( method )
compiler.add_mom(head)
end