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

Method node_text

src/extraction/msbasic2_extractor.rs:70–74  ·  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

68
69 /// Gets the text of a tree-sitter node from the source.
70 fn node_text(&self, node: TsNode<'_>) -> String {
71 node.utf8_text(&self.source)
72 .unwrap_or("<invalid utf8>")
73 .to_string()
74 }
75}
76
77impl MsBasic2Extractor {

Callers 3

parse_lineMethod · 0.45
visit_let_statementMethod · 0.45
walk_for_callsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected