You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#3327 follow-up: nested declarations captured as calls (contract C5) #3360
Part of #3265, from the #3327 contract audit (docs/calls_out_rule_contract.md, class D).
CALLS_OUT_C_STYLE matches the header of a function declared inside the body (def inner(, local function f (, nested fn), so the enclosing function lists inner as a callee. The contract (C5) says a declaration is not a call. Crucible share of emitted names: python 380/9,820, zig 296/19,370, typescript 172/13,765, rust 78/7,898, scala 72/3,434, lua 55/3,301, javascript 49/3,598.
Fix shape: in detector.py, drop a capture whose offset is a nested unit's declaration header. The slicer already knows those offsets from the same block's func_start matches, so no per-language regex is needed. Golden bless required.
Note: until #3328 lands this also creates false fcall edges from the outer to the inner function. Those are harmless for PageRank direction but inflate fan-out.
Activity
Contract: state what counts as a call -- calls_out (#3327, #3265 step…
Re-bless golden masters on top of main (#3360)
calls_out: a nested declaration header is not a call (#3360, contract…
Merge origin/main (#3360) into fix/3359-calls-out-keywords
call_graph_accuracy: regenerate baseline on #3359 + #3360 (#3359)
Regenerate call-graph accuracy baseline after merging #3360; short id…
Re-bless split golden masters for #3361 on main (after #3360, #3402)
calls_out: keywords, annotations and tcl SQL are not calls (#3359) (#…
Engine: built-ins are calls -- calls_out ignore sets hold keywords on…
fix(ruby): calls without parentheses, ?/! names, and methods owned by…
calls_out: calls inside a nested named function belong to that functi…