refactor(parser): Step 3 - Extract declarations module

- Create declarations module with box_definition, static_box, dependency_helpers
- Move parse_box_declaration, parse_interface_box_declaration from mod.rs
- Move parse_static_box and dependency checking logic
- Temporarily restore parse_global_var, parse_function_declaration, parse_static_declaration to mod.rs
- Fix visibility issues (pub vs pub(super))
- Fix TokenType::IMPLEMENTS not defined issue
- Fix Loop AST node condition type mismatch
- Build passes successfully

Next: Step 4 - Extract items module for global_vars, functions, static_items
This commit is contained in:
Moe Charm
2025-08-16 12:19:58 +09:00
parent 4a4f1fffad
commit 9c9af6e9df
5 changed files with 1108 additions and 1090 deletions

File diff suppressed because it is too large Load Diff