Expand description
Contract verification: check that callers pass the correct number of arguments to callees. Uses tree-sitter AST for accurate param/arg counting.
Structs§
- Arity
Mismatch - Arity mismatch found across the dependency graph.
- Contract
Violation - Param
Info - Result of tree-sitter based parameter analysis.
Functions§
- count_
call_ args_ ts - Count call arguments at a specific call site using tree-sitter.
- extract_
param_ info_ ts - Extract parameter info from entity content using tree-sitter.
- find_
arity_ mismatches - Find arity mismatches across all Calls edges in the graph.
- find_
broken_ callers - Find callers broken by signature changes between old and new entities. Compares param counts of functions that exist in both old and new, then checks if any callers in new_graph pass the wrong arg count.
- verify_
contracts - Verify function call contracts across the codebase.
- verify_
contracts_ with_ graph - Like
verify_contracts, but accepts a pre-built graph + entities.