Repository navigation
fix(tests): _get_param_count node-type gaps deflated args_exact_match across 11 languages - #1340
Merged
squid-protocol merged 1 commit intoAug 12, 2026
Conversation
… across 11 languages (#1339) tree_sitter_accuracy_audit's ground-truth arg-count whitelist was built around JS/C-family grammars and never audited against the rest of NODE_MAPS -- csharp, scala, java, apex, typescript, php, ruby, go, swift, dart, and matlab each had their own real per-parameter node type (or missing field entirely) absent from it, silently measuring real=0 regardless of actual signature (same shape #1319 fixed for rust alone). args_exact_match roughly doubles to quadruples for most of the 11 with zero regressions elsewhere; baselines regenerated accordingly. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
squid-protocol
deleted the
fix/args-identification-cross-language-ground-truth
branch
August 12, 2026 14:41
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.
Fixes #1339.
Summary
tests/tools/tree_sitter_accuracy_audit.py's_get_param_count(tree-sitter ground-truth argcounter for
args_exact_match) had acounted_typeswhitelist built around JS/C-familygrammars, never audited against the rest of
NODE_MAPS-- 11 languages (csharp, scala, java,apex, typescript, php, ruby, go, swift, dart, matlab) each had their own real per-parameter node
type (or an entirely missing field, for swift/dart/matlab) absent from it, silently measuring
real=0regardless of actual signature -- the exact same false-defect shape rust func_start misses bodyless multi-line trait method signatures (deserialize_* family) #1319 fixed forrust alone, whose own comment incorrectly claimed the gap was rust-specific.
collide with any other NODE_MAPS language's existing names) and added swift/dart/matlab-specific
branches for their no-field shapes, following the existing kotlin/objc/powershell precedent.
Impact (language-crucible, args_exact_match / args_comparable)
Zero regressions on every other NODE_MAPS language (rust, kotlin, objective-c, powershell,
javascript, c, cpp, css, fortran, zig, solidity, tcl, perl, haskell) -- c/cpp even improved
slightly as a side effect (1606→1609, 991→1004).
This is a ground-truth measurement fix, not necessarily a GitGalaxy product-accuracy fix -- in
most sampled cases GitGalaxy's own
argscounter was already correct (e.g. csharp'sGetParseDiagnostics(CancellationToken cancellationToken = default)measuredreal=0pre-fix against GitGalaxy's already-correct
got=1). See #1339 for the residual-mismatch triage(largest remaining gaps trace to the tool's already-documented same-name-overload-collision
limitation, not new bugs) and two smaller single-language follow-ups noticed in passing (dart,
c) that weren't chased since they aren't cross-language.
Test plan
python tests/tools/tree_sitter_accuracy_audit.py --all --ci-- 31/31 languages passpython tests/ruff_audit.py --ci-- no new findingspython tests/mypy_audit.py --ci-- no new findingsruff format --check tests/tools/tree_sitter_accuracy_audit.py-- already formatted--regenerate🤖 Generated with Claude Code