dillon1000/react

Commit

TreeVisitor distinguish blocks from statements

TreeVisitor didn't distinguish between the type of a block and the type of an 
item that can occur within a block - this was fine for Codegen which can use 
`t.Statement` for both of those values. However, the upcoming scope construction 
needs to distinguish instructions in a block from a block itself, so this PR 
adds a new type parameter.
Browse files
Changed paths8 files
First-parent comparison
M compiler/forget/src/HIR/Codegen.ts ModifiedM compiler/forget/src/HIR/HIRTreeVisitor.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopeDependencies.ts ModifiedM compiler/forget/src/HIR/InferReactiveScopes.ts ModifiedM compiler/forget/src/HIR/PrintHIRTree.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/complex-while.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/mutable-lifetime-loops.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/mutable-liverange-loop.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…