refactor: Break up oversized functions in codegen.rs #215
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
rust
technical-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/patch-seq#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
crates/compiler/src/codegen.rscontains multiple functions exceeding 100 lines, making them difficult to understand, test, and maintain.Oversized Functions
codegen_program_with_configemit_runtime_declarationscodegen_match_statementcodegen_inline_binary_opRecommended Splits
codegen_program_with_config(324 lines → 4 functions)emit_runtime_declarations(245 lines → data-driven)See related issue for extracting to data-driven approach.
codegen_match_statement(117 lines → 3 functions)codegen_inline_binary_op(111 lines → 2 functions)Guidelines for Function Size
Acceptance Criteria
Labels
refactor, technical-debt, high-priority
https://github.com/navicore/patch-seq/pull/225