Add a dependent.
(&mut self, dep: Hash)
| 402 | |
| 403 | /// Add a dependent. |
| 404 | pub fn add_dependent(&mut self, dep: Hash) { |
| 405 | self.dependents.push(dep); |
| 406 | self.can_unrecord = false; |
| 407 | self.block_reason = Some(format!( |
| 408 | "Change has {} dependent(s) in the view", |
| 409 | self.dependents.len() |
| 410 | )); |
| 411 | } |
| 412 | |
| 413 | /// Check if this change has dependents. |
| 414 | pub fn has_dependents(&self) -> bool { |