| 994 | } |
| 995 | |
| 996 | std::any ParserVisitor::visitNegate(CelParser::NegateContext* ctx) { |
| 997 | if (ctx->ops.size() % 2 == 0) { |
| 998 | return visit(ctx->member()); |
| 999 | } |
| 1000 | int64_t op_id = factory_.NextId(SourceRangeFromToken(ctx->ops[0])); |
| 1001 | auto target = ExprFromAny(visit(ctx->member())); |
| 1002 | return ExprToAny( |
| 1003 | GlobalCallOrMacro(op_id, CelOperator::NEGATE, std::move(target))); |
| 1004 | } |
| 1005 | |
| 1006 | std::string ParserVisitor::NormalizeIdentifier( |
| 1007 | CelParser::EscapeIdentContext* ctx) { |
nothing calls this directly
no test coverage detected