Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
42db363
Real JS modules win over the test API and declared types bind no values
devagrawal09 Nov 24, 2026
f30e1bb
Read generic and private types in foreign declarations.
devagrawal09 Nov 25, 2026
d103f95
Parse computed keys, casts, and multiline member chains.
devagrawal09 Nov 25, 2026
7065778
Run the expression fixture in declaration order.
devagrawal09 Nov 25, 2026
81aaa4a
Report diagnostics across a recovering module graph.
devagrawal09 Nov 25, 2026
5ad54b3
Type assertions parse in handlers, and a handler parse error stays on…
devagrawal09 Nov 25, 2026
adf0cc8
Visit computed keys during expression analysis.
devagrawal09 Nov 25, 2026
66e6758
Document foreign declaration type parameters and rows.
devagrawal09 Nov 25, 2026
7c0e41b
A write checks the source's type, not the type a branch narrowed it to.
devagrawal09 Nov 25, 2026
3f7da8d
A .d.rx is the type of its JS module, even when a .ts sits beside it.
devagrawal09 Nov 25, 2026
f4667d7
A handler reads a snapshot, so a view branch does not narrow it.
devagrawal09 Nov 25, 2026
a5e9030
A component's style that only matches another component in the file i…
devagrawal09 Nov 25, 2026
3805aeb
A handler parse error keeps a named habit when the statement reading …
devagrawal09 Nov 25, 2026
8b241fa
The notes list's row styles live on Row, the view they match.
devagrawal09 Nov 25, 2026
13e817d
The Solid oracle erases a type assertion, so a handler write of one k…
devagrawal09 Nov 25, 2026
5fc18a6
Cook escapes in strings and template literals.
devagrawal09 Nov 25, 2026
675cd04
Render empty JSX fragments without text.
devagrawal09 Nov 25, 2026
6ac4e3b
Preserve inline spaces in JSX text.
devagrawal09 Nov 25, 2026
3fefe8e
Let a declaration file import types from another .d.rx or an .rx expo…
devagrawal09 Nov 25, 2026
4fa970a
Flag a typed error boundary whose children an inner catch-all wraps.
devagrawal09 Nov 25, 2026
af9015f
Exercise imported declaration types through rx-tsc
devagrawal09 Nov 25, 2026
057644d
Bind the JS primitive before reading its value in rx-tsc test
devagrawal09 Nov 25, 2026
e417daf
Accept optional value parameters in JS declarations
devagrawal09 Nov 25, 2026
1ee3fe1
Verify optional arguments through rx-tsc
devagrawal09 Nov 25, 2026
1e998f6
Use the scenario notation for an empty frame
devagrawal09 Nov 25, 2026
ba60c70
Keep optional-declaration fixture independent of mock JS
devagrawal09 Nov 25, 2026
caa132d
Only diagnose a dead typed boundary when the inner fallback is static
devagrawal09 Nov 25, 2026
d303341
Complete language conformance and gate checker and lowering parity
devagrawal09 Nov 25, 2026
a2d1777
Keep indexed model reads in parity
devagrawal09 Nov 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 41 additions & 2 deletions .github/workflows/compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,51 @@ name: compiler
on:
push:
branches: [main]
paths: ["compiler/**", ".github/workflows/compiler.yml"]
paths: ["compiler/**", "ref/**", "spec/**", "scenarios/**", "examples/**", ".github/workflows/compiler.yml"]
pull_request:
paths: ["compiler/**", ".github/workflows/compiler.yml"]
paths: ["compiler/**", "ref/**", "spec/**", "scenarios/**", "examples/**", ".github/workflows/compiler.yml"]
workflow_dispatch:

jobs:
parity:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { name: checker, flags: "" }
- { name: lowering, flags: "--lower" }
name: parity (${{ matrix.name }})
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.99.1
- uses: Swatinem/rust-cache@v2
with:
workspaces: compiler
- uses: actions/setup-node@v5
with:
node-version: 24
- uses: pnpm/action-setup@v4
with:
version: 11.1.1
- run: sh ref/scripts/solid-next.sh
- run: npm ci --prefix ref
- if: matrix.flags == ''
run: npm --prefix ref run crate
- if: matrix.flags != ''
# Keep local lowering strict. In CI, tolerate only the named, existing
# mismatches until they are fixed; a crash or a different set fails.
run: |
log=$(mktemp)
status=0
npm --prefix ref run crate -- ${{ matrix.flags }} >"$log" 2>&1 || status=$?
cat "$log"
test "$status" -le 1
grep -Eq '^[0-9]+/[0-9]+ programs lowered alike' "$log"
diff -u ref/lowering-baseline.txt <(grep '^FAIL ' "$log" || true)

build:
strategy:
fail-fast: false
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

**Breaking**

- MO-8c: a real `./api` implementation beside the importing module wins over the injected test API, even if
`createApp({ api })` is set. A test API call with no injected implementation now throws `MISSING_TEST_API`.
- `DEAD_TYPED_BOUNDARY` rejects a typed error boundary proven shadowed by an inner catch-all. Put the typed
boundary inside the catch-all.
- `STYLE_SCOPE` rejects a style block outside a supported style scope; move it into the component that owns the view.
- String and template escapes are cooked in the compiler; programs relying on the previous literal backslashes
must escape those backslashes explicitly.
- Multiline JSX whitespace follows the view whitespace rules (07 §4). Use an explicit `{" "}` where spacing
between pieces must survive.

**Changed**

- `catch` follows only an `await`: `await f(x) catch (e) => alt` makes a matching rejection the answer. A `catch` after
Expand Down
5 changes: 5 additions & 0 deletions compiler/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub enum TplPart {
#[derive(Debug, Clone)]
pub enum Field {
Kv { key: String, v: Expr },
Computed { key: Expr, v: Expr },
Spread(Expr),
}

Expand Down Expand Up @@ -83,6 +84,7 @@ pub enum ExprKind {
Call { f: Box<Expr>, args: Vec<Expr> },
Arr(Vec<Expr>),
Rec(Vec<Field>),
As { e: Box<Expr>, ty: String },
/// `stmts`: a statement-bodied arrow (imperative scope, 07 §5)
Fn { params: Vec<String>, body: Box<Expr>, stmts: Option<Vec<Stmt>> },
/// ST-3
Expand Down Expand Up @@ -420,6 +422,7 @@ impl Expr {
ExprKind::Call { .. } => "call",
ExprKind::Arr(_) => "arr",
ExprKind::Rec(_) => "rec",
ExprKind::As { .. } => "as",
ExprKind::Fn { .. } => "fn",
ExprKind::Draft { .. } => "draft",
ExprKind::Use(_) => "use",
Expand All @@ -443,6 +446,7 @@ impl Expr {
ExprKind::Pre { name, init } => obj(vec![("k", k), ("name", s(name)), ("init", ob(init))]),
ExprKind::Peek(e) | ExprKind::Latest(e) | ExprKind::Pending(e) | ExprKind::Spread(e) | ExprKind::Throw(e) => obj(vec![("k", k), ("e", b(e))]),
ExprKind::Omit { e, keys } => obj(vec![("k", k), ("e", b(e)), ("keys", Some(strs(keys)))]),
ExprKind::As { e, ty } => obj(vec![("k", k), ("e", b(e)), ("ty", s(ty))]),
ExprKind::Await { e, init, stream } => obj(vec![("k", k), ("e", b(e)), ("init", ob(init)), ("stream", Some(Value::Bool(*stream)))]),
ExprKind::If { c, t, f } => obj(vec![("k", k), ("c", b(c)), ("t", b(t)), ("f", b(f))]),
ExprKind::Tpl(parts) => obj(vec![
Expand All @@ -462,6 +466,7 @@ impl Expr {
.iter()
.map(|f| match f {
Field::Kv { key, v } => obj(vec![("key", s(key)), ("v", Some(v.to_json()))]),
Field::Computed { key, v } => obj(vec![("computed", Some(key.to_json())), ("v", Some(v.to_json()))]),
Field::Spread(e) => obj(vec![("spread", Some(e.to_json()))]),
})
.collect(),
Expand Down
Loading
Loading