scala-syntax
Scalameta tree pretty printer
Pretty printer for Scalameta trees using Paiges.
Improves the built-in Scalameta pretty printer (Tree.syntax
) with the following properties:
- Correctness: Handling of precedence rules, inserting parentheses where necessary.
- Trivia Preserving: ability to preserve comments and other syntactic elements when doing tree transformation.
- Line Wrapping: large expressions don't appear in a single line with hundreds of columns.
- Better Performance
The end goal of this project is to enable a more powerful refactoring API for Scalafix. Currently, Scalafix rewrites are implemented using a fairly low-level token API, which is error-prone.
Team
The current maintainers (people who can merge pull requests) are:
- Guillaume Massé -
@MasseGuillaume
- Ólafur Páll Geirsson -
@olafurpg