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

Method visit_BoolTrue

cel/src/parser/parser.rs:1029–1036  ·  view source on GitHub ↗
(&mut self, ctx: &BoolTrueContext<'_>)

Source from the content-addressed store, hash-verified

1027 }
1028
1029 fn visit_BoolTrue(&mut self, ctx: &BoolTrueContext<'_>) -> Self::Return {
1030 match ctx.tok.as_deref() {
1031 Some(tok) => self
1032 .helper
1033 .next_expr(tok, Expr::Literal(LiteralValue::Boolean(true.into()))),
1034 None => self.report_error::<ParseError, _>(&ctx.start(), None, "Incomplete bool!"),
1035 }
1036 }
1037
1038 fn visit_BoolFalse(&mut self, ctx: &BoolFalseContext<'_>) -> Self::Return {
1039 match ctx.tok.as_deref() {

Callers

nothing calls this directly

Calls 2

next_exprMethod · 0.80
startMethod · 0.80

Tested by

no test coverage detected