MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / parent_node_id

Method parent_node_id

src/extraction/dockerfile_extractor.rs:59–61  ·  view source on GitHub ↗

Returns the current parent node ID, or None if at file root level.

(&self)

Source from the content-addressed store, hash-verified

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()));

Callers 6

visit_fromMethod · 0.45
extract_env_pairMethod · 0.45
visit_argMethod · 0.45
visit_exposeMethod · 0.45
visit_labelMethod · 0.45
visit_copyMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected