Commit 387b650
committed
Fix two more sep-omission twins of the type-param keyword drop (#51)
An adversarial gap-hunt (5 agents over the classes the structural checker
does NOT cover) found that the getTypeParamElementKeywords `sep` drop had
un-fixed siblings in the same family:
- detectTypeParamConstraintKeywords.scanConstraint omitted `sep`, so a
type-parameter CONSTRAINT keyword reached through a `&`/`,`-separated list
was not collected — the .tsx generic-arrow⇄JSX no-comma disambiguation lost
its constraint signal (mis-scoping the header as a JSX tag).
- detectDeclarations.containsBlockRef omitted `sep`, so a declaration whose
brace body is reached through a `sep` was not seen as having a body — its
#declaration-body member-scoping region was dropped.
Both recurse into `sep.element` now, mirroring the prior fix. Byte-identical
on all six shipped grammars (latent: every shipped grammar writes constraints
as `opt('extends', Type)` and block bodies as direct refs).
The hunt found 8 latent completeness gaps total; all were VERIFIED latent —
tokenizing the witnesses against the shipped grammars shows ternary, calls,
trailing-comma type params, and every prec operator are correctly scoped, so
the 0-gap soundness ledger is real, not corpus-blind. The remaining gaps are
detector SHAPE-FRAGILITY (fixed-offset window matching in detectTernary /
detectCallExpression / isAngleBracketSepRule misses equivalent factorings),
an unimplemented `rawBlock` config region, and punctuation-in-region — tracked
for follow-up; none triggers on a shipped grammar.1 parent 978cd2c commit 387b650
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
1112 | 1116 | | |
1113 | 1117 | | |
1114 | 1118 | | |
| |||
3157 | 3161 | | |
3158 | 3162 | | |
3159 | 3163 | | |
| 3164 | + | |
3160 | 3165 | | |
3161 | 3166 | | |
3162 | 3167 | | |
| |||
0 commit comments