docs: def _set_declarations(self, declarations):
          """Set declarations local to this loop (e.g. `for` variables)."""
          assert isinstance(declarations, CodeStatement)
          self.declarations = declarations
          declarations.scope = self.body