class Antlr4::Runtime::ProxyErrorListener
Public Class Methods
new(delegates)
click to toggle source
# File lib/antlr4/runtime/proxy_error_listener.rb, line 3 def initialize(delegates) raise StandardError, 'delegates is nil' if delegates.nil? @delegates = delegates end
Public Instance Methods
report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs)
click to toggle source
# File lib/antlr4/runtime/proxy_error_listener.rb, line 15 def report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) @delegates.each do |listener| listener.report_ambiguity(recognizer, dfa, start_index, stop_index, exact, ambig_alts, configs) end end
report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs)
click to toggle source
# File lib/antlr4/runtime/proxy_error_listener.rb, line 21 def report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) @delegates.each do |listener| listener.report_attempting_full_context(recognizer, dfa, start_index, stop_index, conflicting_alts, configs) end end
report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs)
click to toggle source
# File lib/antlr4/runtime/proxy_error_listener.rb, line 27 def report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) @delegates.each do |listener| listener.report_context_sensitivity(recognizer, dfa, start_index, stop_index, prediction, configs) end end
syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e)
click to toggle source
# File lib/antlr4/runtime/proxy_error_listener.rb, line 9 def syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) @delegates.each do |listener| listener.syntax_error(recognizer, offending_symbol, line, char_position_in_line, msg, e) end end