Skip to content

cssdoom functions: bound-arrow count above ctags ruled a counting convention (Part of #5876) - #5963

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5876-20261022T0435Z
Oct 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5876-20261022T0435Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5876

Ruling: cssdoom's +4.7% over ctags is a counting convention, not an engine bug

cssdoom: 225 engine functions vs 215 ctags, 5 files differ. I rescanned it, diffed per-file name sets against ctags (Universal Ctags 5.9.0, same invocation as doom_scorer.ctags_counts) and read each file. The ctags-only set is empty; the 10 engine-only definitions are all real named arrow functions:

File Engine-only Shape What ctags does
src/audio/audio.js unlock const unlock = () => nested in a function not tagged
src/input/touch.js releaseJoystick, releaseLook, releaseFire const f = e => { nested, one param, no parens not tagged
src/ui/spectator.js press, release const f = () => {...} inside a for block tagged constant, not function
src/game/mechanics/lifts.js listTriggers, triggerLinedef, listLifts window.f = () => not tagged
src/ui/debug.js teleport window.teleport = (x, y, a) => not tagged (it does tag window.teleportTo)

ctags is inconsistent on these shapes, so agreement with it is not the target. The engine counts a named arrow wherever it is bound, which is right. No engine change, so no golden re-bless (doom_rosetta_check --only cssdoom is ok).

Changes (3 hand-written files)

  • docs/language_status/javascript.md section 5 item 4: the ruling.
  • tests/extraction/languages/test_javascript.py: test_javascript_func_start_bound_arrow_is_a_function pins the five shapes with our own snippets.
  • tests/doom_rosetta/manifest.csv: the cssdoom expected_fails=functions entry stays, with the ruling linked in its lineage column (CSV has no comment syntax).

Class

Class: arrow functions bound somewhere ctags does not tag (nested const, no-paren param, loop block, window.x =). All 5 shapes covered in this PR's test. Sibling gaps: none. Remaining slices: sqldoom functions (6 files, +11.4%).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 04:46
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 04:47
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant