0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

fix(router-utils): one owner per insert, for the walk, the reads and the env pieces

`RegionTable.insertOwnerAt` gives an insert its one owner, the text
holding its position: the innermost node strictly holding it (its level
renders the insert) and that text's region, else the unit holding the
byte there (it reads what the insert names). The walk renders an insert
only at its owner's level (`RewriteSet.insertLevel`, once per version):
the level-end tests and `cover` are gone, and with them the second render
at a piece cut inside a node (finding 1). In the env module an insert at
the start of a statement placement rewrites is that statement's text: the
span before it no longer renders it (finding 2). An insert where no unit
holds the position is refused when added: nothing would read its names.
No real planner inserts outside a unit (all five stand in expressions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-11-11 01:53:04 +01:00
commit 9457b27729
No known key found for this signature in database
4 changed files with 61 additions and 31 deletions