dillon1000/react
Commit
Browse files TryStatement: maybe-throw terminal for per-instruction throw points
Adds a "maybe-throw" terminal which represents the possibility that the block may or may not throw, and can either continue forward or exit to an exception handler (`catch`). Also updates HIRBuilder to track the current mode, and when inside a try block to wrap every instruction inside a basic block that ends in a maybe-throw. So far this code isn't used yet, so doesn't affect output.
Changed paths6 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/HIRBuilder.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/PrintHIR.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/visitors.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/BuildReactiveFunction.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Utils/VisualizeHIRMermaid.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…