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

Method parent_node_id

src/extraction/qbasic_extractor.rs:64–66  ·  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

62
63 /// Returns the current parent node ID, or None if at file root level.
64 fn parent_node_id(&self) -> Option<&str> {
65 self.node_stack.last().map(|(_, id)| id.as_str())
66 }
67
68 /// Gets the text of a tree-sitter node from the source.
69 fn node_text(&self, node: TsNode<'_>) -> String {

Callers 6

visit_const_statementMethod · 0.45
visit_dim_statementMethod · 0.45
visit_type_definitionMethod · 0.45
visit_type_memberMethod · 0.45
visit_sub_definitionMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected