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

Method visit_LogicalNot

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

Source from the content-addressed store, hash-verified

683 }
684
685 fn visit_LogicalNot(&mut self, ctx: &LogicalNotContext<'_>) -> Self::Return {
686 match &ctx.member() {
687 None => {
688 self.report_error::<ParseError, _>(&ctx.start(), None, "No `MemberContextAll`!");
689 IdedExpr::default()
690 }
691 Some(member) => {
692 if ctx.ops.len() % 2 == 0 {
693 self.visit(member.as_ref());
694 }
695 let op_id = self.helper.next_id(&ctx.ops[0]);
696 let target = self.visit(member.as_ref());
697 self.global_call_or_macro(op_id, operators::LOGICAL_NOT.to_string(), vec![target])
698 }
699 }
700 }
701
702 fn visit_Negate(&mut self, ctx: &NegateContext<'_>) -> Self::Return {
703 match &ctx.member() {

Callers

nothing calls this directly

Calls 5

startMethod · 0.80
visitMethod · 0.80
next_idMethod · 0.80
global_call_or_macroMethod · 0.80
memberMethod · 0.45

Tested by

no test coverage detected