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

Method node_text

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

Get text content of a node

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

Source from the content-addressed store, hash-verified

954
955 /// Get text content of a node
956 fn node_text(&self, node: &Node, source: &str) -> Option<String> {
957 node.utf8_text(source.as_bytes())
958 .ok()
959 .map(|s| s.to_string())
960 }
961
962 /// Build function signature from declaration
963 fn build_function_signature(&self, node: &Node, source: &str) -> String {

Callers 15

walk_treeMethod · 0.45
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

Calls 2

okMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected