refoactor call site some
This commit is contained in:
@ -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
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user