Repository navigation
Description
Context
The tri-comparison ledger's dart/function/args/agree[none]_vs[gitgalaxy,tree_sitter] shape
(221 occurrences as of the 2026-08-21 sweep, status: validated) already confirmed this is a real
GitGalaxy defect, not a tree-sitter artifact, but was never filed as its own GitHub issue — the
ledger verdict said "tracked as a named follow-up under gitgalaxy#2072's scope," but #2072's own
body only covers func_start existence false positives/negatives, never args counting. This files
the dedicated issue for it.
A fresh tri_comparison_gatherer.gather_language("dart") name-matched args diff against current
main (2026-08-26, post-#2129) still shows the defect live and largely unchanged in shape — 306
name-matched mismatches across the 7-file Flutter corpus, the great majority GitGalaxy under-
reporting (frequently 0) relative to tree-sitter's count.
Confirmed shape
Real example, re-confirmed today (language-crucible/data/dart/flutter/editable_text.dart:6352-6353):
class _DeleteTextAction<T extends DirectionalTextEditingIntent> extends ContextAction<T> {
_DeleteTextAction(this.state, this.getTextBoundary, this._applyTextBoundary);Tree-sitter correctly reports args=3 for the real constructor. GitGalaxy reports args=0.
Same shape on the class itself: EditableText reads args=1 in GitGalaxy vs. args=76 from
tree-sitter (tree-sitter's own count here is inflated by matching every constructor-shaped
occurrence of the name across the file, a reconciliation quirk worth separately confirming — but
GitGalaxy's 1 is also not the real per-constructor count, e.g. EditableText({ at
flutter/editable_text.dart:829 has a large named-parameter list, not 1).
Leading hypothesis from the original ledger investigation (2026-08-21, not yet confirmed or
fixed): GitGalaxy's func_start is matching the class declaration header itself under the
class's own name (since a generic-bounded class header like
class _DeleteTextAction<T extends DirectionalTextEditingIntent> extends ContextAction<T> { has no
(...) immediately after the name), rather than the real constructor line one or more lines below
— so the args regex then measures against the wrong span (the class header, which has no real
parameter list) instead of the constructor's actual (...). This is the same class-header-vs-
function-signature ambiguity as #2072's item 1 (now re-filed, see the companion issue), so a fix
for one may resolve or inform the other, but they were confirmed as distinct root causes in
the original investigation and shouldn't be assumed to collapse into one fix without re-verifying
against the corpus after either lands.
Not yet done
Root-causing exactly which func_start/args branch is misattributing these needs its own
investigation with the same regression discipline the #2071 existence fix required — a naive
class-header exclusion was already tried and found unsafe in that investigation (breaks generic
method type-parameter bounds like static Future<T?> pushNamed<T extends Object?>(...)). Good
candidate for a tri-comparison-ledger-sweep dispatch or a harden-language-extraction pass on
dart's args extraction specifically.
🤖 Filed with Claude Code
Activity
fix(dart): implements/with class-header leak, colon-initializer angle…
fix(dart): count named / optional-positional parameter groups in args (…
fix(dart): why the tri-comparison args shape was so large -- 3 residu…
fix(dart): anchor the args span at the name, not a leading @annotation (