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

Function in_function

atomic-audit/src/extract/languages.rs:674–682  ·  view source on GitHub ↗
(mut node: Node<'_>, language: Language)

Source from the content-addressed store, hash-verified

672}
673
674fn in_function(mut node: Node<'_>, language: Language) -> bool {
675 while let Some(parent) = node.parent() {
676 if callable(parent, language) {
677 return true;
678 }
679 node = parent;
680 }
681 false
682}
683
684fn cpp_access(node: Node<'_>, source: &str) -> bool {
685 let mut current = node;

Callers 1

public_surfaceFunction · 0.85

Calls 2

parentMethod · 0.80
callableFunction · 0.70

Tested by

no test coverage detected