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

Method Recover

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

Source from the content-addressed store, hash-verified

186}
187
188func (rl *recoveryLimitErrorStrategy) Recover(recognizer antlr.Parser, e antlr.RecognitionException) {
189 rl.checkAttempts(recognizer)
190 lc := &lookaheadConsumer{Parser: recognizer, errorRecoveryTokenLookaheadLimit: rl.errorRecoveryTokenLookaheadLimit}
191 rl.DefaultErrorStrategy.Recover(lc, e)
192}
193
194func (rl *recoveryLimitErrorStrategy) RecoverInline(recognizer antlr.Parser) antlr.Token {
195 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