refoactor call site some

This commit is contained in:
Torsten Ruger
2016-12-09 12:22:37 +02:00
parent 224670e449
commit 395fd2d701
4 changed files with 32 additions and 20 deletions

View File

@ -1,5 +1,7 @@
module Typed
class CallSite < Expression
attr_accessor :name , :receiver , :arguments
module Tree
class CallSite < Expression
attr_accessor :name , :receiver , :arguments
end
end
end

View File

@ -117,7 +117,7 @@ module Typed
def on_call statement
name_s , arguments , receiver = *statement
w = CallSite.new()
w = Tree::CallSite.new()
w.name = name_s.children.first
w.arguments = process_all(arguments)
w.receiver = process(receiver)