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

Method report_error

cel/src/parser/parser.rs:363–377  ·  view source on GitHub ↗
(
        &mut self,
        token: &CommonToken,
        e: Option<E>,
        s: S,
    )

Source from the content-addressed store, hash-verified

361 }
362
363 fn report_error<E: Error + Send + Sync + 'static, S: Into<String>>(
364 &mut self,
365 token: &CommonToken,
366 e: Option<E>,
367 s: S,
368 ) -> IdedExpr {
369 let error = ParseError {
370 source: e.map(|e| e.into()),
371 pos: (token.line, token.column + 1),
372 msg: s.into(),
373 expr_id: 0,
374 source_info: None,
375 };
376 self.report_parse_error(Some(token), error)
377 }
378
379 fn report_parse_error(&mut self, token: Option<&CommonToken>, mut e: ParseError) -> IdedExpr {
380 let expr = if let Some(token) = token {

Callers 15

visit_IntMethod · 0.80
visit_UintMethod · 0.80
visit_DoubleMethod · 0.80
startMethod · 0.80
exprMethod · 0.80
conditionalOrMethod · 0.80
conditionalAndMethod · 0.80
relation_recMethod · 0.80
calc_recMethod · 0.80
unaryMethod · 0.80
member_recMethod · 0.80
primaryMethod · 0.80

Calls 2

mapMethod · 0.80
report_parse_errorMethod · 0.80

Tested by

no test coverage detected