adds self to sends args

This commit is contained in:
Torsten Ruger
2014-07-15 18:34:03 +03:00
parent 4d725ea1ae
commit 3a152c1295
3 changed files with 4 additions and 4 deletions

View File

@ -6,9 +6,8 @@ module Ast
@@counter = 0
def compile frame , method
me = receiver.compile(frame , method )
method.add Virtual::LoadSelf.new(me)
with = args.collect{|a| a.compile(frame , method)}
frame.compile_send( method , name , with )
frame.compile_send( method , name , me , with )
end
def scratch