Packages

sealed abstract class Patch extends Product

An immutable sealed data structure that describes how to rewrite and lint a source file.

Documentation: https://scalacenter.github.io/scalafix/docs/developers/patch.html

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Patch
  2. Product
  3. Equals
  4. AnyRef
  5. Any
Implicitly
  1. by XtensionScalafixProductInspect
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. def +(other: Option[Patch]): Patch

    Merge this patch together with the other patch if non-empty.

  2. def +(other: Patch): Patch

    Merge this patch together with the other patch.

  3. def ++(other: Iterable[Patch]): Patch

    Merge this patch together with the other patches.

  4. def atomic: Patch

    Skip this entire patch if a part of it is disabled with // scalafix:off

  5. def isEmpty: Boolean

    Returns true if this patch is equal to Patch.empty, false otherwise.

    Returns true if this patch is equal to Patch.empty, false otherwise.

    Note, may return false for patches that produce empty diffs. For example, a Patch. replaceSymbol returns false even if the symbol from is not referenced in the code resulting in an empty diff.

  6. def nonEmpty: Boolean

    See also

    Patch.isEmpty

  7. def productElementName(n: Int): String
    Definition Classes
    Product
  8. def productElementNames: Iterator[String]
    Definition Classes
    Product
  9. def productIterator: Iterator[Any]
    Definition Classes
    Product
  10. def productPrefix: String
    Definition Classes
    Product
  11. def structure: String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  12. def structureLabeled(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  13. def structureLabeled: String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  14. def structureWidth(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect

Deprecated Value Members

  1. def structure(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.7) use structureWidth instead