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

Method node_text

src/extraction/php_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 PhpExtractor {

Callers 15

visit_functionMethod · 0.45
visit_methodMethod · 0.45
visit_classMethod · 0.45
visit_interfaceMethod · 0.45
visit_traitMethod · 0.45
visit_enumMethod · 0.45
visit_enum_caseMethod · 0.45
visit_namespaceMethod · 0.45
visit_use_declarationMethod · 0.45
visit_use_clauseMethod · 0.45
visit_use_groupMethod · 0.45
create_use_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected