From 013e7cfc2ac5abaa341641667bac0d838cd44bcd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 22 Sep 2021 15:15:55 +0800 Subject: [PATCH] codegen: support pass statement. Closes #10 --- nac3core/src/codegen/stmt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nac3core/src/codegen/stmt.rs b/nac3core/src/codegen/stmt.rs index af4e3318..df6e823b 100644 --- a/nac3core/src/codegen/stmt.rs +++ b/nac3core/src/codegen/stmt.rs @@ -94,6 +94,7 @@ impl<'ctx, 'a> CodeGenContext<'ctx, 'a> { // return true if it contains terminator pub fn gen_stmt(&mut self, stmt: &Stmt>) -> bool { match &stmt.node { + StmtKind::Pass => {}, StmtKind::Expr { value } => { self.gen_expr(&value); }