All Projects → scalacenter → scala-syntax

scalacenter / scala-syntax

Licence: Apache-2.0 license
Scalameta pretty printer for better Scalafix refactorings

Programming Languages

scala
5932 projects
shell
77523 projects

scala-syntax Travis Build Status AppVeyor Build status codecov.io Join the chat at https://gitter.im/scalacenter/scalafix

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:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].