package rewrite
- Alphabetic
- Public
- Protected
Type Members
- sealed abstract class Patch extends AnyRef
- abstract class Rewrite extends AnyRef
- case class RewriteCtx(style: ScalafmtConfig, tokenTraverser: TokenTraverser, matchingParens: Map[TokenHash, scala.meta.Token]) extends Product with Serializable
- sealed trait SortImports extends Rewrite
Sorts imports inside curly braces.
Sorts imports inside curly braces.
For example
import a.{c, b}
into
import a.{b, c}
- abstract class TokenPatch extends TreePatch
- abstract class TreePatch extends Patch
Value Members
- object AsciiSortImports extends Rewrite with SortImports with Product with Serializable
Sort imports using the traditional ASCII sorting
Sort imports using the traditional ASCII sorting
See: http://support.ecisolutions.com/doc-ddms/help/reportsmenu/ascii_sort_order_chart.htm
- object AvoidInfix extends Rewrite with Product with Serializable
- object ExpandImportSelectors extends Rewrite with Product with Serializable
- object Patch
- object PreferCurlyFors extends Rewrite with Product with Serializable
Replaces multi generator For / ForYield Expression parens and semi-colons with braces and new-lines.
Replaces multi generator For / ForYield Expression parens and semi-colons with braces and new-lines.
For example,
for(a <- as; b <- bs if b > 2) yield (a, b)
becomes,
for { a <- as b <- bs if b > 2 } yield (a, b)
- object RedundantBraces extends Rewrite with Product with Serializable
Removes/adds curly braces where desired.
- object RedundantParens extends Rewrite with Product with Serializable
- object Rewrite
- object SortImports extends Rewrite with SortImports with Product with Serializable
Sort imports with symbols at the beginning, followed by lowercase and finally uppercase
- object SortModifiers extends Rewrite
- object TokenPatch