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