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

Method node_text

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

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

Callers 8

extract_line_commentMethod · 0.45
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

no outgoing calls

Tested by

no test coverage detected