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

Function PushCallDeps

eval/public/ast_traverse.cc:237–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void PushCallDeps(const Call* call_expr, const Expr* expr,
238 const SourceInfo* source_info,
239 std::stack<StackRecord>* stack) {
240 const int arg_size = call_expr->args_size();
241 // Our contract is that we visit arguments in order. To do that, we need
242 // to push them onto the stack in reverse order.
243 for (int i = arg_size - 1; i >= 0; --i) {
244 stack->push(StackRecord(&call_expr->args(i), source_info, expr, i));
245 }
246 // Are we receiver-style?
247 if (call_expr->has_target()) {
248 stack->push(StackRecord(&call_expr->target(), source_info, expr,
249 StackRecord::kTarget));
250 }
251}
252
253void PushListDeps(const CreateList* list_expr, const SourceInfo* source_info,
254 std::stack<StackRecord>* stack) {

Callers 1

operator()Method · 0.70

Calls 3

argsMethod · 0.80
has_targetMethod · 0.80
StackRecordClass · 0.70

Tested by

no test coverage detected