Commit e1e1dc4
committed
Refactor: Extract FunctionID and builtin constants to function_id.rs
- Move `FunctionID` type alias and associated constants from `vm.rs` to `function_id.rs`.
- Move `get_function_id` and `set_function_id` helper functions to the new module.
- Register `function_id` module in `mod.rs`.
- Import `crate::core::function_id::*` in `compiler.rs`, `value.rs`, and `vm.rs`.1 parent 6ff786d commit e1e1dc4
5 files changed
Lines changed: 344 additions & 338 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments