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
- Alphabetic
- By Inheritance
- Patch
- Product
- Equals
- AnyRef
- Any
- by XtensionScalafixProductInspect
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- def +(other: Option[Patch]): Patch
Merge this patch together with the other patch if non-empty.
- def +(other: Patch): Patch
Merge this patch together with the other patch.
- def ++(other: Iterable[Patch]): Patch
Merge this patch together with the other patches.
- def atomic: Patch
Skip this entire patch if a part of it is disabled with // scalafix:off
- 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.
- def nonEmpty: Boolean
- See also
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- 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
- 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
- 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
- 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
- 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