Commit ae26a80
mforce
fix(#417): codex round 101 — cast-shaped wrappers in chain gaps
A cast between concatenated fragments — "post" + (string)"gres" — is a
value-preserving wrapper the chain gap did not admit: the type name's
identifier characters failed the character-class gap regex, the fold
broke, and each fragment was harmless alone. The regex gap matcher is
replaced by a structural checker that reuses TryConsumeTypeParen:
before the plus, trivia and closing parens of a wrapped previous
fragment; after it, trivia, grouping parens, unary operators, and
cast-shaped parens. A bare identifier in the gap still breaks the fold
(runtime boundary), and the checker stays conservative in the same
direction as before — matching gap shapes that span some non-constant
expressions can only add refusals, never open a hole.
Verified with five positive forms — codex's exact cast gap, a
nested-wrapper variant, a comment-plus-cast gap, and the plain and
parenthesized gaps from rounds 79/82 as regressions — all failing by
name, and a string.Concat call in the gap (identifier-led, runtime)
passing. Restored, rebuilt, all three SchemaDocsTests green.1 parent 762a0d6 commit ae26a80
1 file changed
Lines changed: 34 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
462 | 484 | | |
463 | 485 | | |
464 | 486 | | |
465 | | - | |
| 487 | + | |
466 | 488 | | |
467 | 489 | | |
468 | 490 | | |
| |||
0 commit comments