mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
f4fe87c11e
These node types always generate variable-sized nodes, so the cons-list codegen support is no longer needed. This change: codegen.c: - Moves logic from codegen_break/next/redo/retry into gen_*_var functions - Removes cons-list switch cases for these four node types - Removes the now-unused codegen_break/next/redo/retry functions parse.y: - Updates call_with_block to handle NODE_BREAK and NODE_NEXT through NODE_VARIABLE case instead of cons-list cases - Removes the now-unused cons-list cases for these node types All control flow functionality remains identical, but the code path is simplified since these nodes exclusively use variable-sized structures. Co-authored-by: Claude <noreply@anthropic.com>