2017-01-14 18:28:44 +01:00
|
|
|
module Vm
|
2016-12-09 11:22:37 +01:00
|
|
|
module Tree
|
|
|
|
class CallSite < Expression
|
|
|
|
attr_accessor :name , :receiver , :arguments
|
2016-12-23 20:31:31 +01:00
|
|
|
|
|
|
|
def to_s
|
|
|
|
str = receiver ? "#{receiver}.#{name}" : name.to_s
|
|
|
|
str + arguments.collect{|a| a.to_s }.join(",")
|
|
|
|
end
|
2016-12-09 11:22:37 +01:00
|
|
|
end
|
2016-12-08 18:38:50 +01:00
|
|
|
end
|
|
|
|
end
|