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

Method parent_node_id

src/extraction/lua_extractor.rs:58–60  ·  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

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

Callers 3

emit_use_nodeMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected