(recognizer antlr.Parser)
| 291 | } |
| 292 | |
| 293 | func (rl *recoveryLimitErrorStrategy) RecoverInline(recognizer antlr.Parser) antlr.Token { |
| 294 | rl.checkAttempts(recognizer) |
| 295 | lc := &lookaheadConsumer{Parser: recognizer, errorRecoveryTokenLookaheadLimit: rl.errorRecoveryTokenLookaheadLimit} |
| 296 | return rl.DefaultErrorStrategy.RecoverInline(lc) |
| 297 | } |
| 298 | |
| 299 | func (rl *recoveryLimitErrorStrategy) checkAttempts(recognizer antlr.Parser) { |
| 300 | if rl.recoveryAttempts == rl.errorRecoveryLimit { |