Repository navigation
Align language checks, lowering and the runtime - #98
Open
devagrawal09 wants to merge 29 commits into
Open
devagrawal09 wants to merge 29 commits into
devagrawal09 wants to merge 29 commits into
Conversation
… its line. `e as T` is TypeScript's assertion: erased where the program runs, kept in the projection. A statement-bodied arrow that fails to parse is no longer re-read as a record, which blamed the handler's `let` with JS_LOCAL.
`source open := false` is already a boolean. Inside `{if open}` the read is `true`, and `open := false` was checked against that. The projection keeps the slot's type and checks the write against it.
The projection checks the import against the declaration, so a ref parameter or result is that type and not the accessor the implementation is written with. The compiled import is unchanged.
The read happens when the handler runs, and the branch may no longer hold. Snapshot into a local and narrow that. A check inside the handler still narrows its own snapshot.
…s an error. CSS-2 already scopes a stylesheet to its own view, so Row stayed unstyled with no warning. STYLE_SCOPE names the other component and the fix: its own style, or a class map.
…has none. n++ in a handler was reported as a generic parse error once the statement reading won outright. The expression reading's ASSIGNMENT hint is kept, and JS_LOCAL from re-reading the body as a record is not.
NoteList's stylesheet does not reach Row (CSS-2). .when and td were pruned; they belong on Row.
…eeps the value. `out := s as Status` evaluated to undefined: the oracle's expression walk had no case for `as`. The checker walks through it too, so the read is still the operand.
…rt type. The projection aliases the other declare namespace, not the sibling .ts.
The model marks that region shadowed by the inner one, so the map can draw it.
This branch has not been deployed
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.
What and why
Make real relative JS modules win over the injected
./api, and erase declaration-only imports. Extend written.d.rxdeclarations with private aliases, generics, type imports and failure rows. Fix casts, computed keys, multiline chains, escapes, fragments and JSX spacing across the reference and Rust implementations.Recover diagnostics independently across modules. Align
rx-tscwith declaration-file precedence, source write types, and handler snapshots. Diagnose misplaced styles, statically shadowed typed boundaries, and unsupported action defaults. Add the fixed pure JavaScript prelude and detach store snapshots at action call time without changing ordinary JS argument identity. Block-function equations still instantiate;SNAPSHOT_ARGUMENTexplains when to use an expression-bodied function instead.This change includes checker and lowering parity in compiler CI. It does not include declaration generation, dev keys or the map.
Breaking changes
./apitakes precedence; an unresolved injected API with no implementation reportsMISSING_TEST_API.STYLE_SCOPEandDEAD_TYPED_BOUNDARYreject previously accepted shapes. The latter only fires when the inner fallback is statically inert.Verification
S-solid-28observed a late hydration frame before its expected answerQuestions for Ryan
DEAD_TYPED_BOUNDARYthe right level of proof for an error?