Class

scalafix.rewrite

RewriteCtx

Related Doc: package rewrite

Permalink

case class RewriteCtx(tree: Tree, config: internal.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: internal.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 semanticCtx: util.SemanticCtx): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  5. def addGlobalImport(symbol: scala.meta.Symbol)(implicit semanticCtx: 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: internal.config.ScalafixConfig

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

    Permalink
  13. def debugSemanticCtx()(implicit semanticCtx: 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. def lint(msg: LintMessage): Patch

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  20. lazy val matching: MatchingParens

    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 printLintMessage(msg: LintMessage, owner: RewriteName): Unit

    Permalink
  25. def removeGlobalImport(symbol: scala.meta.Symbol)(implicit semanticCtx: util.SemanticCtx): Patch

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    RewriteCtxPatchOps
  36. val reporter: ScalafixReporter

    Permalink
  37. def semanticCtx(implicit semanticCtx: util.SemanticCtx): util.SemanticCtx

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

    Permalink
    Definition Classes
    AnyRef
  39. def syntax: String

    Permalink
  40. def toString(): String

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

    Permalink
  42. implicit lazy val tokens: Tokens

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

    Permalink
  44. val tree: Tree

    Permalink
  45. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. 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