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

Method node_text

src/extraction/nix_extractor.rs:62–66  ·  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

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

Callers 9

visit_bindingMethod · 0.45
visit_inheritMethod · 0.45
extract_binding_nameMethod · 0.45
extract_docstringMethod · 0.45
extract_call_sitesMethod · 0.45
check_import_in_exprMethod · 0.45
extract_callee_nameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected