Repository navigation
fix(calls_out): improve Python, Rust, Swift, C#, Scala, and Solidity call-graph ledger accuracy - #8795
Merged
Conversation
Contributor
squid-protocol
force-pushed
the
fix/multi-lang-call-graph-ledger
branch
from
November 20, 2026 20:06
dc73162 to
2dfa29a
Compare
…call-graph ledger accuracy
squid-protocol
force-pushed
the
fix/multi-lang-call-graph-ledger
branch
from
November 20, 2026 22:32
2dfa29a to
2967c9f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates #8792 (Python), #8794 (Rust), and #8795 (Swift, C#, Scala, Solidity) into a single PR cleanly rebased onto
main(2f36dbfb0) to eliminate golden-crucible merge conflicts and cut CI usage 3x:class_definition<block30 FPs,inner-named-function_definition10 FPs,engine-attributes-to-another-function6 FNs, cross-newline non-calls 2 FPs)CALLS_OUT_PYTHON(_shared_patterns.py, registered inQUALIFIED_CALLS_OUT_PATTERNS) with(?<!\bclass )(?<!\bclass\t)and same-line[ \t]*\(; added"True","False","None"to_calls_out_ignore(python.py)._slice_by_indentation(detector.py) to carry unclosed bracket depth from multi-line return annotations (-> AsyncIterator[\n T\n]:).struct_item<block3 FPs,tuple_struct_pattern<tuple_pattern2 FPs,macro_invocation/identifier4 FNs,engine-attributes-to-another-function1 FN)_STRUCT_DECL), widened_ARM_PATTERN/_SELECT_ARM_PATTERNparen nesting to 4 levels, preservedToken![...]macro calls inside_blank_fn_params(rust.py), and switchedCALLS_OUT_RUST's suffix to a positive lookahead (_shared_patterns.py).call_expression/-68 FNs,call_expression/-+generic2 FNs,pattern<switch_pattern2 FPs)CALLS_OUT_SWIFTfor dotted trailing-closure calls (q.async { ... },mutableState.write { ... }) and generic calls; added_blank_swift_patternsfor switchcasepatterns (swift.py).attribute<attribute_list22 FPs)_blank_csharp_attributesfor standalone attribute lines ([Obsolete(...)],[Experimental(...)]) incsharp.py.instance_expression/-49 FNs,call_expression/generic_function7 FNs,case_class_pattern<case_clause44 FPs)CALLS_OUT_SCALAfor bracket-generic calls (ArrayBuffer[T](...)) and parenthesis-lessnew pkg.Type[T]; added_blank_scala_patternsforcasepatterns and nestedclassheaders (scala.py).type(T)2 FPs,emit11 FPs,revertcustom errors 3 FPs)type,emit, andrevertto_calls_out_ignoreand_blank_solidity_non_callsinsolidity.py.Golden Crucible Updates
tests/golden_master_auditandtests/golden_master_zero_dep_auditonce on top oforigin/main(2f36dbfb0) viacrucible_check.py --update --yes.Verification
test_calls_out_python_ledger.py,test_calls_out_rust_ledger.py, andtest_calls_out_multi_lang_ledger.py(including ReDoS immunity checks).CALLS_OUT_PYTHON/CALLS_OUT_SWIFT/CALLS_OUT_SCALAassertions intest_calls_out_keywords_3359.pyandtest_calls_out_generics_3644.py.ruff format --check,tests/ruff_audit.py --ci, andtests/doc_refs_audit.py --ci.