From f561e79a733ebfc98af9756f66f6452d3b0c8e5d Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Fri, 27 Jun 2025 20:01:35 +0900 Subject: [PATCH] Fix __annotation__ --- compiler/codegen/src/compile.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/codegen/src/compile.rs b/compiler/codegen/src/compile.rs index 5abec728d5..2e7e5a4ad5 100644 --- a/compiler/codegen/src/compile.rs +++ b/compiler/codegen/src/compile.rs @@ -491,6 +491,10 @@ impl Compiler<'_> { ) -> CompileResult<()> { self.symbol_table_stack.push(symbol_table); + if Self::find_ann(body) { + emit!(self, Instruction::SetupAnnotation); + } + if let Some((last, body)) = body.split_last() { for statement in body { if let Stmt::Expr(StmtExpr { value, .. }) = &statement {