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

Method node_text

src/extraction/dockerfile_extractor.rs:76–80  ·  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

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

Callers 6

visit_fromMethod · 0.45
extract_env_pairMethod · 0.45
visit_argMethod · 0.45
visit_exposeMethod · 0.45
visit_labelMethod · 0.45
visit_copyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected