(recognizer antlr.Parser)
| 297 | } |
| 298 | |
| 299 | func (rl *recoveryLimitErrorStrategy) checkAttempts(recognizer antlr.Parser) { |
| 300 | if rl.recoveryAttempts == rl.errorRecoveryLimit { |
| 301 | rl.recoveryAttempts++ |
| 302 | msg := fmt.Sprintf("error recovery attempt limit exceeded: %d", rl.errorRecoveryLimit) |
| 303 | recognizer.NotifyErrorListeners(msg, nil, nil) |
| 304 | panic(&recoveryLimitError{ |
| 305 | message: msg, |
| 306 | }) |
| 307 | } |
| 308 | rl.recoveryAttempts++ |
| 309 | } |
| 310 | |
| 311 | var _ antlr.ErrorStrategy = &recoveryLimitErrorStrategy{} |
| 312 |
no outgoing calls
no test coverage detected