Commits
Click on a commit to change the comparison rangefeat: Implement HIR pretty printer
Implementation Details:
- Added HirPrettyPrinter struct for formatting HIR nodes
- Implemented Display traits for Expr and Type
- Added pretty printing methods for contracts, functions, variables, and statements
- Fixed error handling in test file to properly convert between error types
- Added proper error handling for SourceFile creation
Testing:
- Added test_pretty_print test to verify pretty printer functionality
- Fixed warnings in pretty.rs by prefixing unused variables with underscore
- Added #[allow(dead_code)] to unused methods
- Added #[allow(unused_crate_dependencies)] to test file
Future Work:
- Implement parsing and lowering functionality in test
- Complete TODO items in pretty printer for parameter and return type printing
- Add more comprehensive tests for different HIR node types
- Improve error handling and diagnostics Merge branch 'main' into feat/hir-pretty-printer