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

Method RecoverInline

parser/antlr_parser.go:194–198  ·  view source on GitHub ↗
(recognizer antlr.Parser)

Source from the content-addressed store, hash-verified

192}
193
194func (rl *recoveryLimitErrorStrategy) RecoverInline(recognizer antlr.Parser) antlr.Token {
195 rl.checkAttempts(recognizer)
196 lc := &lookaheadConsumer{Parser: recognizer, errorRecoveryTokenLookaheadLimit: rl.errorRecoveryTokenLookaheadLimit}
197 return rl.DefaultErrorStrategy.RecoverInline(lc)
198}
199
200func (rl *recoveryLimitErrorStrategy) checkAttempts(recognizer antlr.Parser) {
201 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