caseEnvironments property
The environment an if-case binds its pattern variables in, keyed by the
if statement; its THEN branch runs in it.
ghissues62: the state machine runs an if-case of an async function
itself. Selected structurally, as catchEnvironments is and for the same
reasons: a node lexically inside the then branch gets the environment,
nothing has to be popped, and a re-entered if overwrites its entry.
Keyed by identity for the same reason too.
Implementation
final Map<SIfStatement, Environment> caseEnvironments =
Map<SIfStatement, Environment>.identity();