dillon1000/react
Commit
Browse files [valueblocks] Support conditional expressions (ternary)
Support conditional expressions from AST -> HIR -> ReactiveFunction -> AST. This also helps make the patterns for value block handling more clear, so i was able to extract some reusable logic in the HIR -> ReactiveFunction conversion phase.
Changed paths12 files
First-parent comparisoncompiler/forget/src/HIR/BuildHIR.ts ModifiedM compiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/HIR/PrintHIR.ts ModifiedM compiler/forget/src/ReactiveScopes/BuildReactiveFunction.ts ModifiedM compiler/forget/src/ReactiveScopes/CodegenReactiveFunction.ts ModifiedM compiler/forget/src/ReactiveScopes/PrintReactiveFunction.ts ModifiedM compiler/forget/src/ReactiveScopes/visitors.ts ModifiedM compiler/forget/src/SSA/LeaveSSA.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/logical-expression.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/logical-expression.js ModifiedA compiler/forget/src/__tests__/fixtures/hir/sequence-expression.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/sequence-expression.js AddedPatch
Files changed
Rendering syntax-highlighted changes…