Class: Antlr4ruby::ErrorNode

Inherits:
TerminalNode show all
Defined in:
lib/antlr4ruby/tree/error_node.rb

Instance Attribute Summary

Attributes inherited from TerminalNode

#parent, #symbol

Instance Method Summary collapse

Methods inherited from TerminalNode

#get_child, #get_child_count, #get_parent, #get_payload, #get_source_interval, #get_symbol, #get_text, #set_parent, #to_s, #to_string_tree

Constructor Details

#initialize(token) ⇒ ErrorNode

Returns a new instance of ErrorNode.



6
7
8
# File 'lib/antlr4ruby/tree/error_node.rb', line 6

def initialize(token)
  super(token)
end

Instance Method Details

#accept(visitor) ⇒ Object



11
12
13
# File 'lib/antlr4ruby/tree/error_node.rb', line 11

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