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

Function callable

atomic-semantic/src/source.rs:132–143  ·  view source on GitHub ↗
(node: Node<'_>)

Source from the content-addressed store, hash-verified

130}
131
132fn callable(node: Node<'_>) -> bool {
133 matches!(
134 node.kind(),
135 "function_item"
136 | "function_declaration"
137 | "function_definition"
138 | "method_definition"
139 | "method_declaration"
140 | "constructor_declaration"
141 | "init_declaration"
142 )
143}
144
145fn enclosing_callable(mut node: Node<'_>) -> Option<Node<'_>> {
146 while let Some(parent) = node.parent() {

Callers 4

enclosing_callableFunction · 0.70
scopeFunction · 0.70
tokensFunction · 0.70
from_treeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected