Returns the current parent node ID, or None if at file root level.
(&self)
| 57 | |
| 58 | /// Returns the current parent node ID, or None if at file root level. |
| 59 | fn parent_node_id(&self) -> Option<&str> { |
| 60 | self.node_stack.last().map(|(_, id)| id.as_str()) |
| 61 | } |
| 62 | |
| 63 | fn register_stage_target(&mut self, name: impl Into<String>, id: &str) { |
| 64 | self.stage_targets.push((name.into(), id.to_string())); |
no test coverage detected