summaryrefslogtreecommitdiff
path: root/src/parser/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r--src/parser/parser.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h
index 5757fbc..f566979 100644
--- a/src/parser/parser.h
+++ b/src/parser/parser.h
@@ -263,10 +263,11 @@ struct ParserContext
int extern_symbol_count;
// Codegen state:
- FILE *hoist_out; // For plugins to hoist code to file scope
- int skip_preamble; // If 1, codegen_node(NODE_ROOT) won't emit preamble
- int is_repl; // REPL mode flag
- int has_async; // Track if async features are used
+ FILE *hoist_out; // For plugins to hoist code to file scope
+ int skip_preamble; // If 1, codegen_node(NODE_ROOT) won't emit preamble
+ int is_repl; // REPL mode flag
+ int has_async; // Track if async features are used
+ int in_defer_block; // Track if currently parsing inside a defer block
};
// Token helpers