dillon1000/react

Commit

[new-arch][easy] Codegen for switch statements

Flushes out basic codegen for switch statements. This is more indication that we 
can recover nearly the original source even for complex control-flow, given the 
right IR design.
Browse files
Changed paths4 files
First-parent comparison
M compiler/forget/src/HIR/Codegen.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/switch-non-final-default.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/switch-non-final-default.js AddedM compiler/forget/src/__tests__/fixtures/hir/switch.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…