| 246 | } |
| 247 | |
| 248 | void PushStructDeps(StructExpr* struct_expr, std::stack<StackRecord>* stack) { |
| 249 | auto& entries = struct_expr->mutable_fields(); |
| 250 | for (auto it = entries.rbegin(); it != entries.rend(); ++it) { |
| 251 | auto& entry = *it; |
| 252 | // The contract is to visit key, then value. So put them on the stack |
| 253 | // in the opposite order. |
| 254 | if (entry.has_value()) { |
| 255 | stack->push(StackRecord(&entry.mutable_value())); |
| 256 | } |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | void PushMapDeps(MapExpr* struct_expr, std::stack<StackRecord>* stack) { |
| 261 | auto& entries = struct_expr->mutable_entries(); |
no test coverage detected