MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / report_parse_error

Method report_parse_error

cel/src/parser/parser.rs:379–391  ·  view source on GitHub ↗
(&mut self, token: Option<&CommonToken>, mut e: ParseError)

Source from the content-addressed store, hash-verified

377 }
378
379 fn report_parse_error(&mut self, token: Option<&CommonToken>, mut e: ParseError) -> IdedExpr {
380 let expr = if let Some(token) = token {
381 self.helper.next_expr(token, Expr::default())
382 } else {
383 IdedExpr {
384 id: 0,
385 expr: Expr::default(),
386 }
387 };
388 e.expr_id = expr.id;
389 self.errors.push(e);
390 expr
391 }
392}
393
394struct RecursionListener {

Callers 3

global_call_or_macroMethod · 0.80
report_errorMethod · 0.80

Calls 2

next_exprMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected