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

Method node_text

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

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

Callers 15

visit_packageMethod · 0.45
visit_importMethod · 0.45
visit_fieldMethod · 0.45
extract_nameMethod · 0.45
has_modifierMethod · 0.45
extract_superclassMethod · 0.45

Calls 1

node_textFunction · 0.85

Tested by

no test coverage detected