c

scalafix.rewrite

RewriteCtx

case class RewriteCtx(tree: Tree, config: config.ScalafixConfig) extends PatchOps with Product with Serializable

Bundle of useful things when implementing Rewrite.

Self Type
RewriteCtx
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RewriteCtx
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PatchOps
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RewriteCtx(tree: Tree, config: config.ScalafixConfig)

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(importer: Importer)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  5. def addGlobalImport(symbol: scala.meta.Symbol)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  6. def addLeft(tok: scala.meta.Token, toAdd: String): Patch
    Definition Classes
    RewriteCtxPatchOps
  7. def addRight(tok: scala.meta.Token, toAdd: String): Patch
    Definition Classes
    RewriteCtxPatchOps
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. lazy val comments: AssociatedComments
  11. val config: config.ScalafixConfig
  12. def debug(values: Text[Any]*)(implicit fileLine: FileLine): Unit
  13. def debugMirror()(implicit mirror: util.SemanticCtx, fileLine: FileLine): Unit
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  17. lazy val input: scala.meta.Input
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. lazy val matching: MatchingParens
  20. def mirror(implicit mirror: util.SemanticCtx): util.SemanticCtx
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. def removeGlobalImport(symbol: scala.meta.Symbol)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  25. def removeImportee(importee: Importee): Patch
    Definition Classes
    RewriteCtxPatchOps
  26. def removeToken(token: scala.meta.Token): Patch
    Definition Classes
    RewriteCtxPatchOps
  27. def removeTokens(tokens: Tokens): Patch
    Definition Classes
    RewriteCtxPatchOps
  28. def rename(from: Name, to: String): Patch
    Definition Classes
    RewriteCtxPatchOps
  29. def rename(from: Name, to: Name): Patch
    Definition Classes
    RewriteCtxPatchOps
  30. def renameSymbol(fromSymbol: Global, toName: String)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  31. def replaceSymbol(fromSymbol: Global, toSymbol: Global)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  32. def replaceSymbols(toReplace: (String, String)*)(implicit mirror: util.SemanticCtx): Patch
    Definition Classes
    RewriteCtxPatchOps
  33. def replaceToken(token: scala.meta.Token, toReplace: String): Patch
    Definition Classes
    RewriteCtxPatchOps
  34. def replaceTree(from: Tree, to: String): Patch
    Definition Classes
    RewriteCtxPatchOps
  35. val reporter: ScalafixReporter
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def syntax: String
  38. def toString(): String
    Definition Classes
    RewriteCtx → AnyRef → Any
  39. lazy val tokenList: TokenList
  40. implicit lazy val tokens: Tokens
  41. def toks(t: Tree): Tokens
  42. val tree: Tree
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PatchOps

Inherited from AnyRef

Inherited from Any

Ungrouped