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

Method node_text

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

Get text content of a node

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

Source from the content-addressed store, hash-verified

982
983 /// Get text content of a node
984 fn node_text(&self, node: &Node, source: &str) -> Option<String> {
985 node.utf8_text(source.as_bytes())
986 .ok()
987 .map(|s| s.to_string())
988 }
989
990 /// Build function signature from declaration
991 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