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