dillon1000/react
Commit
Browse files Support assignment in for statement's update clause
Per the title, this PR adds support for assignment expressions in update clauses. This was mostly fixed by the previous diff to improve value block handling, and there's only a bit more to do here to allow a "value block" that doesn't produce a value (we need a better name).
Changed paths11 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/Codegen.ts ModifiedM compiler/forget/src/HIR/HIRTreeVisitor.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopes.ts ModifiedM compiler/forget/src/HIR/LeaveSSA.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/ssa-for-trivial-update.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/ssa-for-trivial-update.js AddedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-for.js ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-while-no-reassign.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-while.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…