CreatePerIterationEnvironment only ever creates normal bindings, so there is nothing to actually dispose in ForBodyEvaluation. The only place we actually need to handle specifically in a for statement is in ForLoopEvaluation, since any using declaration in the ForDeclaration nonterminal would be defined in the non-per-iteration environment (loopEnv).
CreatePerIterationEnvironment only ever creates
normal
bindings, so there is nothing to actually dispose in ForBodyEvaluation. The only place we actually need to handle specifically in afor
statement is in ForLoopEvaluation, since anyusing
declaration in the ForDeclaration nonterminal would be defined in the non-per-iteration environment (loopEnv).