Packages

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addGlobalImport(symbol: Symbol)(implicit c: SemanticContext): Patch

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

  5. def addGlobalImport(importer: Importer): Patch

    Add this importer to the global import list.

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

    Add this string to the left of this tree.

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

    Add this string to the left of this token.

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

    Add this string to the right of this tree.

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

    Add this string to the right of this token.

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. val empty: Patch

    Do nothing: no diff, no diagnostics.

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. def fromIterable(seq: Iterable[Patch]): Patch

    Combine a sequence of patches into a single patch.

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def lint(msg: lint.Diagnostic): Patch

    Reports error/warning/info message at a position.

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def removeGlobalImport(symbol: Symbol)(implicit c: SemanticContext): Patch

    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

    Remove this importee reference.

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

    Remove this single token from the source file.

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

    Remove all of the these tokens from the source file.

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

    Replace occurrences of fromSymbol to use toName instead

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

    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

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

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

    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
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped