rust/compiler/rustc_ast_pretty/src
Yuki Okushi 761705ebe5
Rollup merge of #93515 - dtolnay:convenience, r=davidtwco
Factor convenience functions out of main printer implementation

The pretty printer in rustc_ast_pretty has a section of methods commented "Convenience functions to talk to the printer". This PR pulls those out to a separate module. This leaves pp.rs with only the minimal API that is core to the pretty printing algorithm.

I found this separation to be helpful in https://github.com/dtolnay/prettyplease because it makes clear when changes are adding some fundamental new capability to the pretty printer algorithm vs just making it more convenient to call some already existing functionality.
2022-02-03 22:20:25 +09:00
..
pp Factor convenience functions out of main printer implementation 2022-01-31 11:23:47 -08:00
pprust Restore a visual alignment mode for block comments 2022-01-30 19:50:54 -08:00
helpers.rs Delete duplicated helpers from HIR printer 2021-12-05 12:45:51 -08:00
lib.rs
pp.rs Rollup merge of #93515 - dtolnay:convenience, r=davidtwco 2022-02-03 22:20:25 +09:00