Class: Ikra::AST::NilLiteralNode

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



110
111
112
# File 'lib/ast/visitor.rb', line 110

def accept(visitor)
    visitor.visit_nil_node(self)
end

#to_sObject



102
103
104
# File 'lib/ast/printer.rb', line 102

def to_s
    return "<nil>"
end