Packages

package rewrite

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed abstract class Patch extends AnyRef
  2. abstract class Rewrite extends AnyRef
  3. case class RewriteCtx(style: ScalafmtConfig, tokenTraverser: TokenTraverser, matchingParens: Map[TokenHash, scala.meta.Token]) extends Product with Serializable
  4. 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}

  5. abstract class TokenPatch extends TreePatch
  6. abstract class TreePatch extends Patch

Value Members

  1. 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

  2. object AvoidInfix extends Rewrite with Product with Serializable
  3. object ExpandImportSelectors extends Rewrite with Product with Serializable
  4. object Patch
  5. 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)

  6. object RedundantBraces extends Rewrite with Product with Serializable

    Removes/adds curly braces where desired.

  7. object RedundantParens extends Rewrite with Product with Serializable
  8. object Rewrite
  9. object SortImports extends Rewrite with SortImports with Product with Serializable

    Sort imports with symbols at the beginning, followed by lowercase and finally uppercase

  10. object SortModifiers extends Rewrite
  11. object TokenPatch

Ungrouped