generators::legacy0: statement support + refactoring.