Object/Class

scalafix.patch

Patch

Related Docs: class Patch | package patch

Permalink

object Patch

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Patch
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addGlobalImport(symbol: Symbol)(implicit c: SemanticContext): Patch

    Permalink

    Place named import for this symbol at the bottom of the global import list

  5. def addGlobalImport(importer: Importer): Patch

    Permalink

    Add this importer to the global import list.

  6. def addLeft(tree: Tree, toAdd: String): Patch

    Permalink

    Add this string to the left of this tree.

  7. def addLeft(tok: scala.meta.Token, toAdd: String): Patch

    Permalink

    Add this string to the left of this token.

  8. def addRight(tree: Tree, toAdd: String): Patch

    Permalink

    Add this string to the right of this tree.

  9. def addRight(tok: scala.meta.Token, toAdd: String): Patch

    Permalink

    Add this string to the right of this token.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val empty: Patch

    Permalink

    Do nothing: no diff, no diagnostics.

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def fromIterable(seq: Iterable[Patch]): Patch

    Permalink

    Combine a sequence of patches into a single patch.

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def lint(msg: lint.Diagnostic): Patch

    Permalink

    Reports error/warning/info message at a position.

  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def removeGlobalImport(symbol: Symbol)(implicit c: SemanticContext): Patch

    Permalink

    Remove named imports for this symbol.

    Remove named imports for this symbol.

    Does not remove wildcard imports for the enclosing package or class.

  25. def removeImportee(importee: Importee): Patch

    Permalink

    Remove this importee reference.

  26. def removeToken(token: scala.meta.Token): Patch

    Permalink

    Remove this single token from the source file.

  27. def removeTokens(tokens: Iterable[scala.meta.Token]): Patch

    Permalink

    Remove all of the these tokens from the source file.

  28. def renameSymbol(fromSymbol: Symbol, toName: String)(implicit c: SemanticContext): Patch

    Permalink

    Replace occurrences of fromSymbol to use toName instead

  29. def replaceSymbols(toReplace: (String, String)*)(implicit c: SemanticContext): Patch

    Permalink

    Replace occurrences of fromSymbol to reference toSymbol instead.

    Replace occurrences of fromSymbol to reference toSymbol instead.

    toSymbol must be a global symbol such as an object/class or a static method.

    May produce broken code in some cases, works best when toSymbol has the same depth as fromSymbol, example: - good: replace:com.foo.Bar/org.qux.Buz - bad: replace:com.Bar/org.qux.Buz

  30. def replaceToken(token: scala.meta.Token, toReplace: String): Patch

    Permalink

    Remove the token and insert this string at the same position.

  31. def replaceTree(from: Tree, to: String): Patch

    Permalink

    Remove all tokens from this tree and add a string add the same position.

    Remove all tokens from this tree and add a string add the same position.

    Beware that this patch does not compose with other patches touching the same tree node or its children. Avoid using this method for large tree nodes like classes of methods. It's recommended to target as precise tree nodes as possible.

    It is better to use addRight/addLeft if you only insert new code, example: - bad: Patch.replaceTree(tree, "(" + tree.syntax + ")") - good: Patch.addLeft(tree, "(") + Patch.addRight(tree, + ")")

  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped