| 235 | } |
| 236 | |
| 237 | void 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 | |
| 253 | void PushListDeps(const CreateList* list_expr, const SourceInfo* source_info, |
| 254 | std::stack<StackRecord>* stack) { |
no test coverage detected