MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / visitLogicalNot

Method visitLogicalNot

parser/parser.cc:986–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986std::any ParserVisitor::visitLogicalNot(CelParser::LogicalNotContext* ctx) {
987 if (ctx->ops.size() % 2 == 0) {
988 return visit(ctx->member());
989 }
990 int64_t op_id = factory_.NextId(SourceRangeFromToken(ctx->ops[0]));
991 auto target = ExprFromAny(visit(ctx->member()));
992 return ExprToAny(
993 GlobalCallOrMacro(op_id, CelOperator::LOGICAL_NOT, std::move(target)));
994}
995
996std::any ParserVisitor::visitNegate(CelParser::NegateContext* ctx) {
997 if (ctx->ops.size() % 2 == 0) {

Callers

nothing calls this directly

Calls 6

SourceRangeFromTokenFunction · 0.85
ExprFromAnyFunction · 0.85
ExprToAnyFunction · 0.85
memberMethod · 0.80
sizeMethod · 0.45
NextIdMethod · 0.45

Tested by

no test coverage detected