dillon1000/react
Commit
Browse files [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.
Changed paths4 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…