mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
5e130f5381
Unified gen_class_var, gen_module_var, and gen_sclass_var functions by extracting common patterns into two helper functions: - gen_class_body() handles body generation for all three types - gen_namespace() handles namespace/parent setup for class and module This refactoring eliminates approximately 40 lines of duplicated code while maintaining identical functionality and bytecode generation patterns. Co-authored-by: Claude <noreply@anthropic.com>