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

Function compatible

atomic-audit/src/impact/analysis.rs:39–47  ·  view source on GitHub ↗
(call: &BoundCall<'_>)

Source from the content-addressed store, hash-verified

37}
38
39fn compatible(call: &BoundCall<'_>) -> Option<bool> {
40 let arguments = call.call.arguments?;
41 call.symbol.arity_known.then_some(
42 call.present
43 && call.accessible
44 && arguments >= call.expected_min
45 && call.expected_max.is_none_or(|max| arguments <= max),
46 )
47}
48
49pub fn analyze(
50 before: &[(String, String)],

Callers 1

analyze_semanticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected