Repository navigation
cssdoom functions: bound-arrow count above ctags ruled a counting convention (Part of #5876) - #5963
Merged
Merged
Conversation
…vention (Part of #5876) 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 22, 2026 04:46
squid-protocol
enabled auto-merge (squash)
October 22, 2026 04:47
Owner
Author
|
No description provided. |
This was referenced Oct 22, 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 #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:src/audio/audio.jsunlockconst unlock = () =>nested in a functionsrc/input/touch.jsreleaseJoystick,releaseLook,releaseFireconst f = e => {nested, one param, no parenssrc/ui/spectator.jspress,releaseconst f = () => {...}inside aforblockconstant, not functionsrc/game/mechanics/lifts.jslistTriggers,triggerLinedef,listLiftswindow.f = () =>src/ui/debug.jsteleportwindow.teleport = (x, y, a) =>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 cssdoomisok).Changes (3 hand-written files)
docs/language_status/javascript.mdsection 5 item 4: the ruling.tests/extraction/languages/test_javascript.py:test_javascript_func_start_bound_arrow_is_a_functionpins the five shapes with our own snippets.tests/doom_rosetta/manifest.csv: the cssdoomexpected_fails=functionsentry 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