Package

scalafix

patch

Permalink

package patch

Visibility
  1. Public
  2. All

Type Members

  1. trait LowLevelPatch extends AnyRef

    Permalink
  2. sealed abstract class Patch extends AnyRef

    Permalink

    A data structure that can produce a .patch file.

    A data structure that can produce a .patch file.

    The best way to build a Patch is with a RewriteCtx inside a Rewrite. For example, Rewrite.syntactic(ctx => ctx.addLeft(ctx.tree.tokens.head): Patch)

    Patches can be composed with Patch.+ and Patch.++. A Seq[Patch] can be combined into a single patch with Seq[Patch](...).asPatch with import scalafix._.

    Patches are split into low-level token patches and high-level tree patches. A token patch works on scala.meta.Token and provides surgical precision over how details like formatting are managed by the rewrite.

    NOTE: Patch current only works for a single file, but it may be possible to add support in the future for combining patches for different files with Patch + Patch.

  3. trait PatchOps extends AnyRef

    Permalink
  4. abstract class TokenPatch extends Patch with LowLevelPatch

    Permalink
  5. abstract class TreePatch extends Patch

    Permalink

Value Members

  1. object MoveSymbolOps

    Permalink
  2. object Patch

    Permalink

Ungrouped