(&mut self, ctx: &LogicalNotContext<'_>)
| 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() { |
nothing calls this directly
no test coverage detected