blockEnvironments property

Map<SBlock, Environment> blockEnvironments
final

The environment of each block the state machine has entered, keyed by the block; every node lexically inside it runs in it.

ghissues63: a block's locals went into the enclosing scope, so they leaked out of it and overwrote an outer variable of the same name. Selected structurally like catchEnvironments, and replaced each time the block is entered (a loop body, every iteration). Keyed by identity for the same reason.

Implementation

final Map<SBlock, Environment> blockEnvironments =
    Map<SBlock, Environment>.identity();