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

Method parent_node_id

src/extraction/kotlin_extractor.rs:71–73  ·  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

69
70 /// Returns the current parent node ID, or None if at file root level.
71 fn parent_node_id(&self) -> Option<&str> {
72 self.node_stack.last().map(|(_, id)| id.as_str())
73 }
74
75 /// Gets the text of a tree-sitter node from the source.
76 fn node_text(&self, node: TsNode<'_>) -> String {

Callers 13

visit_packageMethod · 0.45
visit_importMethod · 0.45
visit_classMethod · 0.45
visit_data_classMethod · 0.45
visit_sealed_classMethod · 0.45
visit_interfaceMethod · 0.45
visit_enumMethod · 0.45
visit_enum_entryMethod · 0.45
visit_objectMethod · 0.45
visit_functionMethod · 0.45
visit_propertyMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected