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

Function PushCallDeps

eval/public/ast_rewrite.cc:236–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

operator()Method · 0.70

Calls 2

has_targetMethod · 0.80
StackRecordClass · 0.70

Tested by

no test coverage detected