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

Function decorated_target

crates/devsql/src/providers/symbols.rs:283–287  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

281
282#[cfg(feature = "tree-sitter-ast")]
283fn decorated_target(node: Node) -> Option<Node> {
284 let mut cursor = node.walk();
285 let mut iter = node.named_children(&mut cursor);
286 iter.find(|child| child.kind() == "function_definition" || child.kind() == "class_definition")
287}
288
289#[cfg(feature = "tree-sitter-ast")]
290fn normalize_kind(language: TsLanguageKind, key: &str, node: Node) -> String {

Callers 2

normalize_kindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected