MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / node_text

Method node_text

atomic-semantic/src/parser.rs:939–943  ·  view source on GitHub ↗

Get text content of a node

(&self, node: &Node, source: &str)

Source from the content-addressed store, hash-verified

937
938 /// Get text content of a node
939 fn node_text(&self, node: &Node, source: &str) -> Option<String> {
940 node.utf8_text(source.as_bytes())
941 .ok()
942 .map(|s| s.to_string())
943 }
944
945 /// Build function signature from declaration
946 fn build_function_signature(&self, node: &Node, source: &str) -> String {

Callers 15

extract_functionMethod · 0.45
extract_classMethod · 0.45
extract_methodMethod · 0.45
extract_interfaceMethod · 0.45
extract_type_aliasMethod · 0.45
extract_enumMethod · 0.45
extract_moduleMethod · 0.45
build_const_signatureMethod · 0.45
build_class_signatureMethod · 0.45

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected