mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.