MCPcopy Create free account
hub / github.com/concensure/Semantic / node_text

Function node_text

parser/src/lib.rs:688–692  ·  view source on GitHub ↗
(node: Node, src: &str)

Source from the content-addressed store, hash-verified

686}
687
688fn node_text(node: Node, src: &str) -> String {
689 let start = node.start_byte();
690 let end = node.end_byte();
691 src.get(start..end).unwrap_or_default().to_string()
692}
693
694fn infer_semantic_label(node_type: LogicNodeType, snippet: String) -> String {
695 let normalized = snippet.to_ascii_lowercase();

Callers 2

collect_import_targetsFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…