diff --git a/nac3core/src/codegen/generator.rs b/nac3core/src/codegen/generator.rs
index 023c74762..53049795e 100644
--- a/nac3core/src/codegen/generator.rs
+++ b/nac3core/src/codegen/generator.rs
@@ -104,6 +104,17 @@ pub trait CodeGenerator {
false
}
+ /// Generate code for a while expression.
+ /// Return true if the while loop must early return
+ fn gen_for<'ctx, 'a>(
+ &mut self,
+ ctx: &mut CodeGenContext<'ctx, 'a>,
+ stmt: &Stmt