| 218 | } |
| 219 | |
| 220 | void PushStructDeps(const StructExpr* struct_expr, |
| 221 | std::stack<StackRecord>* stack) { |
| 222 | const auto& entries = struct_expr->fields(); |
| 223 | for (auto it = entries.rbegin(); it != entries.rend(); ++it) { |
| 224 | const auto& entry = *it; |
| 225 | // The contract is to visit key, then value. So put them on the stack |
| 226 | // in the opposite order. |
| 227 | if (entry.has_value()) { |
| 228 | stack->push(StackRecord(&entry.value())); |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | void PushMapDeps(const MapExpr* map_expr, std::stack<StackRecord>* stack) { |
| 234 | const auto& entries = map_expr->entries(); |
no test coverage detected