Class: ProxyErrorListener
- Inherits:
-
ErrorListener
- Object
- ErrorListener
- ProxyErrorListener
- Defined in:
- lib/antlr4/error/ErrorListener.rb
Instance Attribute Summary collapse
-
#delegates ⇒ Object
Returns the value of attribute delegates.
Instance Method Summary collapse
-
#initialize(delegates) ⇒ ProxyErrorListener
constructor
A new instance of ProxyErrorListener.
- #reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs) ⇒ Object
- #reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs) ⇒ Object
- #reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs) ⇒ Object
- #syntaxError(recognizer, offendingSymbol, line, column, msg, e) ⇒ Object
Constructor Details
#initialize(delegates) ⇒ ProxyErrorListener
Returns a new instance of ProxyErrorListener.
79 80 81 82 83 |
# File 'lib/antlr4/error/ErrorListener.rb', line 79 def initialize(delegates) super() raise ReferenceError.new("delegates") if delegates.nil? @delegates = delegates end |
Instance Attribute Details
#delegates ⇒ Object
Returns the value of attribute delegates.
78 79 80 |
# File 'lib/antlr4/error/ErrorListener.rb', line 78 def delegates @delegates end |
Instance Method Details
#reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs) ⇒ Object
91 92 93 94 95 |
# File 'lib/antlr4/error/ErrorListener.rb', line 91 def reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs) for delegate in self.delegates delegate.reportAmbiguity(recognizer, dfa, startIndex, stopIndex, exact, ambigAlts, configs) end end |
#reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs) ⇒ Object
97 98 99 100 101 |
# File 'lib/antlr4/error/ErrorListener.rb', line 97 def reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs) for delegate in self.delegates delegate.reportAttemptingFullContext(recognizer, dfa, startIndex, stopIndex, conflictingAlts, configs) end end |
#reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs) ⇒ Object
104 105 106 107 108 |
# File 'lib/antlr4/error/ErrorListener.rb', line 104 def reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs) for delegate in self.delegates delegate.reportContextSensitivity(recognizer, dfa, startIndex, stopIndex, prediction, configs) end end |
#syntaxError(recognizer, offendingSymbol, line, column, msg, e) ⇒ Object
85 86 87 88 89 |
# File 'lib/antlr4/error/ErrorListener.rb', line 85 def syntaxError(recognizer, offendingSymbol, line, column, msg, e) for delegate in self.delegates delegate.syntaxError(recognizer, offendingSymbol, line, column, msg, e) end end |