Collapsed EndModuleStmt to one production.