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
#3265 step 0: state the calls_out contract (what counts as a call) #3327
Part of #3265. Do first -- every later step (resolver, metrics, benchmark) needs a written definition of what a call is, or there is nothing to resolve or score against.
Today the definition is implicit, spread across each language's calls_out pattern and the per-language _calls_out_ignore sets added in Epic #3264 Phase 3 (#3282-#3287). calls_out_to (detector.py ~L8781) is a deduplicated list of bare names with self-recursion removed and call counts dropped.
Decisions to write down (one language-independent sentence plus corollaries, via the rule-contract-audit process into gitgalaxy/standards/signal_contracts.py):
Constructors (new Foo(), Foo() in Python) -- a call to Foo?
Method calls -- is obj.save() the edge save, or obj.save (see step 2)?
Built-ins / stdlib (print, len) -- emitted and classified later as external, or never emitted?
Macros, decorators, callbacks passed by name (map(f, xs)), dynamic dispatch (getattr, call_user_func).
Recursion -- keep dropping it, or keep it (function PageRank will want it)?
Multiplicity -- keep deduplicating, or keep per-call-site counts for edge weights?
Done when: the contract row is stated, and the per-language rules that disagree with it are listed (fixing them can be follow-ups).
Activity
calls_out_tointo a First-Class Function Dependency Graph #3265Contract: state what counts as a call -- calls_out (#3327, #3265 step…
Engine: function-level PageRank, fan-in and fan-out columns (#3330) (#…
Benchmark call-graph accuracy (#3332) + two resolver fixes it found (#…
call_graph_accuracy: score the #3327 contract on the tree-sitter side…
calls_out: keywords, annotations and tcl SQL are not calls (#3359) (#…
DOOM call-graph oracle: pin that self-edges are ignored, not scored a…