Class

scalafix.rewrite

RewriteCtx

Related Doc: package rewrite

Permalink

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)

    Permalink

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(importer: Importer)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  5. def addGlobalImport(symbol: scala.meta.Symbol)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  6. def addLeft(tok: scala.meta.Token, toAdd: String): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  7. def addRight(tok: scala.meta.Token, toAdd: String): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. lazy val comments: AssociatedComments

    Permalink
  11. val config: config.ScalafixConfig

    Permalink
  12. def debug(values: Text[Any]*)(implicit fileLine: FileLine): Unit

    Permalink
  13. def debugMirror()(implicit mirror: util.SemanticCtx, fileLine: FileLine): Unit

    Permalink
  14. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. lazy val input: scala.meta.Input

    Permalink
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. lazy val matching: MatchingParens

    Permalink
  20. def mirror(implicit mirror: util.SemanticCtx): util.SemanticCtx

    Permalink
  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: scala.meta.Symbol)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  25. def removeImportee(importee: Importee): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  26. def removeToken(token: scala.meta.Token): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  27. def removeTokens(tokens: Tokens): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  28. def rename(from: Name, to: String): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  29. def rename(from: Name, to: Name): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  30. def renameSymbol(fromSymbol: Global, toName: String)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  31. def replaceSymbol(fromSymbol: Global, toSymbol: Global)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  32. def replaceSymbols(toReplace: (String, String)*)(implicit mirror: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  33. def replaceToken(token: scala.meta.Token, toReplace: String): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  34. def replaceTree(from: Tree, to: String): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  35. val reporter: ScalafixReporter

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

    Permalink
    Definition Classes
    AnyRef
  37. def syntax: String

    Permalink
  38. def toString(): String

    Permalink
    Definition Classes
    RewriteCtx → AnyRef → Any
  39. lazy val tokenList: TokenList

    Permalink
  40. implicit lazy val tokens: Tokens

    Permalink
  41. def toks(t: Tree): Tokens

    Permalink
  42. val tree: Tree

    Permalink
  43. final def wait(): Unit

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

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

    Permalink
    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