Class: Ikra::AST::BreakNode

Inherits:
TreeNode show all
Defined in:
lib/ast/nodes.rb,
lib/ast/printer.rb,
lib/ast/visitor.rb

Constant Summary

Constants inherited from TreeNode

TreeNode::TYPE_INFO_VARS

Instance Attribute Summary

Attributes inherited from Node

#parent

Instance Method Summary collapse

Methods inherited from TreeNode

#==, #enclosing_class, #find_behavior_node, #get_type, #is_begin_node?, #merge_union_type, #register_type_change, #replace, #replace_child, #symbol_table

Methods inherited from Node

#==, #eql?, #hash

Instance Method Details

#accept(visitor) ⇒ Object



158
159
160
# File 'lib/ast/visitor.rb', line 158

def accept(visitor)
 return visitor.visit_break_node(self)
end

#to_sObject



150
151
152
# File 'lib/ast/printer.rb', line 150

def to_s
    return "[BreakNode]"
end