scalafix
.
rewrite
RewriteCtx
Related Doc:
package rewrite
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
Serializable
,
Serializable
,
Product
,
Equals
,
PatchOps
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
RewriteCtx
Serializable
Serializable
Product
Equals
PatchOps
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
RewriteCtx
(
tree:
Tree
,
config:
config.ScalafixConfig
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
addGlobalImport
(
importer:
Importer
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
addGlobalImport
(
symbol:
scala.meta.Symbol
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
addLeft
(
tok:
scala.meta.Token
,
toAdd:
String
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
addRight
(
tok:
scala.meta.Token
,
toAdd:
String
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
lazy val
comments
:
AssociatedComments
val
config
:
config.ScalafixConfig
def
debug
(
values:
Text
[
Any
]*
)
(
implicit
fileLine:
FileLine
)
:
Unit
def
debugMirror
()
(
implicit
mirror:
util.SemanticCtx
,
fileLine:
FileLine
)
:
Unit
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
lazy val
input
:
scala.meta.Input
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
lazy val
matching
:
MatchingParens
def
mirror
(
implicit
mirror:
util.SemanticCtx
)
:
util.SemanticCtx
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
removeGlobalImport
(
symbol:
scala.meta.Symbol
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
removeImportee
(
importee:
Importee
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
removeToken
(
token:
scala.meta.Token
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
removeTokens
(
tokens:
Tokens
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
rename
(
from:
Name
,
to:
String
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
rename
(
from:
Name
,
to:
Name
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
renameSymbol
(
fromSymbol:
Global
,
toName:
String
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
replaceSymbol
(
fromSymbol:
Global
,
toSymbol:
Global
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
replaceSymbols
(
toReplace: (
String
,
String
)*
)
(
implicit
mirror:
util.SemanticCtx
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
replaceToken
(
token:
scala.meta.Token
,
toReplace:
String
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
def
replaceTree
(
from:
Tree
,
to:
String
)
:
Patch
Definition Classes
RewriteCtx
→
PatchOps
val
reporter
:
ScalafixReporter
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
syntax
:
String
def
toString
()
:
String
Definition Classes
RewriteCtx
→ AnyRef → Any
lazy val
tokenList
:
TokenList
implicit
lazy val
tokens
:
Tokens
def
toks
(
t:
Tree
)
:
Tokens
val
tree
:
Tree
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
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
Bundle of useful things when implementing Rewrite.