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

Method visitCreateMap

parser/parser.cc:1231–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231std::any ParserVisitor::visitCreateMap(CelParser::CreateMapContext* ctx) {
1232 int64_t struct_id = factory_.NextId(SourceRangeFromToken(ctx->op));
1233 std::vector<MapExprEntry> entries;
1234 if (ctx->entries) {
1235 entries = visitEntries(ctx->entries);
1236 }
1237 return ExprToAny(factory_.NewMap(struct_id, std::move(entries)));
1238}
1239
1240std::any ParserVisitor::visitConstantLiteral(
1241 CelParser::ConstantLiteralContext* clctx) {

Callers

nothing calls this directly

Calls 4

SourceRangeFromTokenFunction · 0.85
ExprToAnyFunction · 0.85
NextIdMethod · 0.45
NewMapMethod · 0.45

Tested by

no test coverage detected