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

Method node_text

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

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

Callers 15

is_import_callMethod · 0.45
visit_importMethod · 0.45
extract_import_moduleMethod · 0.45
visit_enum_variantMethod · 0.45
visit_constMethod · 0.45
visit_fieldMethod · 0.45
visit_functionMethod · 0.45
visit_testMethod · 0.45
has_pub_keywordMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected