MCPcopy Create free account
hub / github.com/douglance/devsql / signature_text

Function signature_text

crates/devsql/src/providers/symbols.rs:321–328  ·  view source on GitHub ↗
(node: Node, source: &str)

Source from the content-addressed store, hash-verified

319
320#[cfg(feature = "tree-sitter-ast")]
321fn signature_text(node: Node, source: &str) -> String {
322 if let Some(body) = node.child_by_field_name("body") {
323 let start = node.start_byte();
324 let end = body.start_byte();
325 return source[start..end].trim().to_string();
326 }
327 node_text(node, source)
328}
329
330#[cfg(feature = "tree-sitter-ast")]
331fn visibility_text(language: TsLanguageKind, node: Node, source: &str) -> String {

Callers 1

Calls 1

node_textFunction · 0.70

Tested by

no test coverage detected