add missing pass to playground

It's pretty tedious to keep the playground in sync w `Pipeline` — we need some 
abstraction so we can write the sequence of passes once and reuse it (while 
inspecting intermediate states).
This commit is contained in:
Joe Savona
2022-12-16 09:41:47 -08:00
parent 075cdcec9e
commit 6053703dbb
@@ -36,6 +36,7 @@ const {
printHIR,
printReactiveFunction,
propagateScopeDependencies,
pruneUnusedLabels,
} = HIR;
const MemoizedOutput = memo(Output);
@@ -100,6 +101,7 @@ function compile(source: string): CompilerOutput | CompilerError {
const inferReactiveScopesOutput = printHIR(ir.body);
const reactiveFunction = buildReactiveFunction(ir);
pruneUnusedLabels(reactiveFunction);
flattenReactiveLoops(reactiveFunction);
propagateScopeDependencies(reactiveFunction);
const reactiveFunctionOutput = printReactiveFunction(reactiveFunction);