Class: RLSL::Prism::IR::FuncCall

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/expressions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

Constructor Details

#initialize(name, args = [], receiver = nil, type = nil) ⇒ FuncCall

Returns a new instance of FuncCall.



98
99
100
101
102
103
104
# File 'lib/rlsl/prism/ir/expressions.rb', line 98

def initialize(name, args = [], receiver = nil, type = nil)
  super()
  @name = name
  @args = args
  @receiver = receiver
  @type = type
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



94
95
96
# File 'lib/rlsl/prism/ir/expressions.rb', line 94

def args
  @args
end

#nameObject (readonly)

Returns the value of attribute name.



94
95
96
# File 'lib/rlsl/prism/ir/expressions.rb', line 94

def name
  @name
end

#receiverObject (readonly)

Returns the value of attribute receiver.



94
95
96
# File 'lib/rlsl/prism/ir/expressions.rb', line 94

def receiver
  @receiver
end