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

Method visitCreateList

parser/parser.cc:1193–1197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191}
1192
1193std::any ParserVisitor::visitCreateList(CelParser::CreateListContext* ctx) {
1194 int64_t list_id = factory_.NextId(SourceRangeFromToken(ctx->op));
1195 auto elems = visitList(ctx->elems);
1196 return ExprToAny(factory_.NewList(list_id, std::move(elems)));
1197}
1198
1199std::vector<ListExprElement> ParserVisitor::visitList(
1200 CelParser::ListInitContext* ctx) {

Callers

nothing calls this directly

Calls 4

SourceRangeFromTokenFunction · 0.85
ExprToAnyFunction · 0.85
NextIdMethod · 0.45
NewListMethod · 0.45

Tested by

no test coverage detected