MCPcopy Create free account
hub / github.com/cel-expr/cel-go / RecoverInline

Method RecoverInline

parser/parser.go:300–304  ·  view source on GitHub ↗
(recognizer antlr.Parser)

Source from the content-addressed store, hash-verified

298}
299
300func (rl *recoveryLimitErrorStrategy) RecoverInline(recognizer antlr.Parser) antlr.Token {
301 rl.checkAttempts(recognizer)
302 lc := &lookaheadConsumer{Parser: recognizer, errorRecoveryTokenLookaheadLimit: rl.errorRecoveryTokenLookaheadLimit}
303 return rl.DefaultErrorStrategy.RecoverInline(lc)
304}
305
306func (rl *recoveryLimitErrorStrategy) checkAttempts(recognizer antlr.Parser) {
307 if rl.recoveryAttempts == rl.errorRecoveryLimit {

Callers 6

relationMethod · 0.80
calcMethod · 0.80
HelpMethod · 0.80
TypeIdMethod · 0.80
relationMethod · 0.80
calcMethod · 0.80

Calls 1

checkAttemptsMethod · 0.95

Tested by

no test coverage detected