Class: Cyrel::AST::CallNode

Inherits:
Node
  • Object
show all
Defined in:
lib/cyrel/ast/call_node.rb

Overview

AST node for CALL clauses (procedures) For when you need to call upon the powers that be

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #accept

Constructor Details

#initialize(procedure_name, arguments: [], yield_items: nil) ⇒ CallNode

Returns a new instance of CallNode.



10
11
12
13
14
# File 'lib/cyrel/ast/call_node.rb', line 10

def initialize(procedure_name, arguments: [], yield_items: nil)
  @procedure_name = procedure_name
  @arguments = arguments
  @yield_items = yield_items
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



8
9
10
# File 'lib/cyrel/ast/call_node.rb', line 8

def arguments
  @arguments
end

#procedure_nameObject (readonly)

Returns the value of attribute procedure_name.



8
9
10
# File 'lib/cyrel/ast/call_node.rb', line 8

def procedure_name
  @procedure_name
end

#yield_itemsObject (readonly)

Returns the value of attribute yield_items.



8
9
10
# File 'lib/cyrel/ast/call_node.rb', line 8

def yield_items
  @yield_items
end