change method and frame around in calling, easier to understand static first

This commit is contained in:
Torsten Ruger
2014-07-24 14:56:27 +03:00
parent e408b0e4b9
commit e427bcef43
9 changed files with 29 additions and 29 deletions

View File

@ -4,9 +4,9 @@ module Ast
class CallSiteExpression < Expression
# attr_reader :name, :args , :receiver
@@counter = 0
def compile frame , method
me = receiver.compile(frame , method )
with = args.collect{|a| a.compile(frame , method)}
def compile method , frame
me = receiver.compile( method, frame )
with = args.collect{|a| a.compile( method,frame)}
frame.compile_send( method , name , me , with )
end