dillon1000/react
Commit
Browse files "ValueBlock" for while test node
The instructions of a while test node cannot just be pushed to the previous block. This creates a new block for the test node and then during code gen converts the statements pushed to the "value block" into expressions.
Changed paths10 files
First-parent comparisoncompiler/forget/src/HIR/Codegen.ts ModifiedM compiler/forget/src/HIR/HIRTreeVisitor.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopeDependencies.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopes.ts ModifiedM compiler/forget/src/HIR/PrintHIRTree.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/_bug_while-with-assignment.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/mutable-lifetime-loops.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/mutable-liverange-loop.expect.md 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…