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

Method RecoverInline

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

Source from the content-addressed store, hash-verified

291}
292
293func (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
299func (rl *recoveryLimitErrorStrategy) checkAttempts(recognizer antlr.Parser) {
300 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