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

Method node_text

src/extraction/lua_extractor.rs:63–67  ·  view source on GitHub ↗

Gets the text of a tree-sitter node from the source.

(&self, node: TsNode<'_>)

Source from the content-addressed store, hash-verified

61
62 /// Gets the text of a tree-sitter node from the source.
63 fn node_text(&self, node: TsNode<'_>) -> String {
64 node.utf8_text(&self.source)
65 .unwrap_or("<invalid utf8>")
66 .to_string()
67 }
68}
69
70impl LuaExtractor {

Callers 7

emit_use_nodeMethod · 0.45
extract_docstringMethod · 0.45
extract_call_sitesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected