Goal
Clean up the parser crate by removing dead code, unused imports, and commented-out code.
Current Issues
cargo check -p parser reports 41 warnings, mostly unused imports and dead code.
Key areas to clean up:
- Unused imports across multiple files (
assign.rs, ast.rs, binary_op.rs, builtin.rs, decl.rs, function.rs, identifier.rs, literal_parse.rs, loop.rs, types.rs, errors.rs, expressions.rs, shared_ast.rs)
- Unreachable statement in
expressions.rs:233 (code after panic!)
- Unused variables (
span, return_type, other)
- Unused type alias and function in test modules
- Commented-out test functions in
tests/condition.rs
- Large commented-out code blocks (e.g. function definition parsing in
expressions.rs)
- Function
parse_function_def imported but unused
Note: This should NOT remove any actively used functionality - only dead code that serves no purpose.
Goal
Clean up the parser crate by removing dead code, unused imports, and commented-out code.
Current Issues
cargo check -p parserreports 41 warnings, mostly unused imports and dead code.Key areas to clean up:
assign.rs,ast.rs,binary_op.rs,builtin.rs,decl.rs,function.rs,identifier.rs,literal_parse.rs,loop.rs,types.rs,errors.rs,expressions.rs,shared_ast.rs)expressions.rs:233(code afterpanic!)span,return_type,other)tests/condition.rsexpressions.rs)parse_function_defimported but unusedNote: This should NOT remove any actively used functionality - only dead code that serves no purpose.