Repository navigation
Call-graph accuracy: measure kotlin, scala, swift, lua (Part of #3641) - #6396
Merged
Merged
Conversation
Step 2 of the epic, calls half. call_graph_accuracy.py now scores callee names for four more tree-sitter-comparable languages. Harness fixes: kotlin/swift call_expression and scala instance_expression carry no callee field, scala stable_type_identifier names its last segment, a swift subscript is no call (C3), lua function_call. Baseline and ledger seeded (new shapes only, all unvalidated). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 07:06
squid-protocol
enabled auto-merge (squash)
October 24, 2026 07:07
This was referenced Oct 24, 2026
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.
Part of #3641 (step 2, coverage sweep, calls half). Checklist: partial -- calls now measured for kotlin, scala, swift, lua; rest of the gap map remains.
What
call_graph_accuracy.pyscores callee names (Level 1) for kotlin, scala, swift and lua, against tree-sitter. Tool and test change only: no engine, so no golden re-bless.Harness fixes (mechanical, not verdicts): kotlin/swift
call_expressionand scalainstance_expressionhave no callee field (callee is the first named child); scalastable_type_identifiernames its last segment; a swiftx["k"]subscript parses as a call and is not one (C3); luafunction_call.New ledger shapes (26) are all
unvalidated; existing shapes are untouched (the count churn stays with the history workflow).Class / Sibling gaps
Class: a tree-sitter-comparable language with crucible data but no Level-1 callee measurement. Covered here: kotlin, scala, swift, lua. Sibling gaps: zig (call nodes are
SuffixExpr/FnCallArguments, needs its own callee mapping); dart, haskell, perl, powershell, objective-c, apex, tcl, fortran, matlab, ada, scheme, makefile (need NODE_MAPS call mapping; groovy has no NODE_MAPS entry). Engine gaps the numbers show: swift trailing-closure calls (x.map { }, 82 of 94 FN), scalanew a.B[T]()and call-chain misses. No burned mainframe estate needs any of these.Gates
call_graph_accuracy --ciOK;graph_coverage_chart --checkcurrent;pr_gates --fast7/7;--ratchets9/9; tree-wide guard tests and changed tests pass (35 tests, time ratchet clean).🤖 Generated with Claude Code