Repository navigation
typescript: ternary consequents and parameter-list lines are not func_start (Part of #5503) - #5516
Conversation
…_start (Part of #5503) The zero-prefix `name(args) : Type ;` branch read a call on the line after a `?`/`:` line (a ternary alternate) and `name: T,` / `name = arrow` lines of a multi-line parameter list as definitions. The aperture now keeps the 3 MB checker.ts, which exposed 83 of them. Anchor lookbehinds, a parameter-line lookahead, and `readonly|keyof|unique` in the type-keyword blacklist; typescript audit baseline re-blessed (extras back to 1, the pre-existing `catch`), golden masters re-blessed. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5516 @ 2a117d0: 3 failed check(s) == full-suite (failure) -- real == full-suite part 2/3 (failure) -- real == graph-accuracy-audit (failure) -- real |
…lookahead is shared (Part of #5503) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5516 @ 4eb8ce5: 1 failed check(s) == graph-accuracy-audit (failure) -- real |
|
No description provided. |
|
Rescue (Opus): the red
|
|
Waiting on an owner decision (asked privately, 2026-10-18). Nothing is needed from contributors; work resumes once it is answered. |
|
The owner decided (2026-10-18); the bot applies it on its next tick. |
…e now keeps (Closes #5581) (#5583) #5493 (aperture payload guards) changed which pinned-corpus files the scan keeps, so typescript went 35->36 files, real_functions 7391->8484 and real_classes 894->1488. #5509 re-baselined rust and shell but skipped typescript while extra_functions was 106; #5516 brought it back to 1, so the tool now blesses it with no regressions. The language-crucible pin (v1.7.0) is unchanged. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Part of #5503 (typescript slice; the zig slice is #5504).
What changed
typescript_compiler/checker.ts, so the typescript audit saw files 31->35 and funcs 2998->7391, and--regeneraterefused (extras 1 -> 106).name(args) : Type ;branch offunc_startread a call on the line after a?/:line (a ternary alternate), andname: T,/name = arrowlines of multi-line parameter lists, as definitions.typescript.py: fixed-width lookbehinds on the anchor (LF/CRLF, plus blanked comment lines), one parameter-line lookahead, a default-arrow lookahead, andreadonly|keyof|uniquein the type-keyword blacklist.test_typescript_func_start_ternary_consequent_is_not_a_definition_5503(LF and CRLF) with negatives and controls.catchin vscode/async.ts); summary table updated.Class table
Class: a line-start
name(args)/name: T,/name = arrowthat the zero-prefix:Type;terminator offunc_startreads as a definition.?/:line (ternary alternate), LF and CRLFtest_..._5503negatives; 83 audit extras gonename: T,line of a multi-line parameter listparams, LF and CRLFname = arrowdefault-valued parameter after a,lineparams, LF and CRLFgetAll: () => readonly Foo[](type keywordreadonly, pluskeyof,unique)foo(): void;, class method afterp?, object shorthandcatchat vscode/async.ts:74languages/found no:Type;zero-prefix terminator outside typescript.pyHand-written files: 2 (
typescript.py,test_typescript_strict.py). Regenerated: typescript audit baseline,language_standards/__init__.pytable, both golden masters.Sibling gaps
None: every member handled (the javascript.py row rests on a grep, not a corpus scan).
Gates
--all --ci: all 30 OK.audit_check.py: all clear. typescript tests 223 passed (incl. ReDoS immunity).--update.Cross-repo
None; the corpus pin is unchanged.
Lessons for agents
golden-lock.sh python ...needs the venv on PATH (flock: failed to execute pythonotherwise).(?:(?<!A)|(?!B))infunc_startwent quadratic (~43 s on 100k chars); use one lookahead that starts with a lookbehind.\nand\r\n; Pythonreneeds fixed width, so list both.🤖 Generated with Claude Code