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

Method Recover

parser/parser.go:287–291  ·  view source on GitHub ↗
(recognizer antlr.Parser, e antlr.RecognitionException)

Source from the content-addressed store, hash-verified

285}
286
287func (rl *recoveryLimitErrorStrategy) Recover(recognizer antlr.Parser, e antlr.RecognitionException) {
288 rl.checkAttempts(recognizer)
289 lc := &lookaheadConsumer{Parser: recognizer, errorRecoveryTokenLookaheadLimit: rl.errorRecoveryTokenLookaheadLimit}
290 rl.DefaultErrorStrategy.Recover(lc, e)
291}
292
293func (rl *recoveryLimitErrorStrategy) RecoverInline(recognizer antlr.Parser) antlr.Token {
294 rl.checkAttempts(recognizer)

Callers 15

Start_Method · 0.80
ExprMethod · 0.80
ConditionalOrMethod · 0.80
ConditionalAndMethod · 0.80
relationMethod · 0.80
calcMethod · 0.80
UnaryMethod · 0.80
memberMethod · 0.80
PrimaryMethod · 0.80
ExprListMethod · 0.80
ListInitMethod · 0.80
FieldInitializerListMethod · 0.80

Calls 1

checkAttemptsMethod · 0.95

Tested by

no test coverage detected