Renaming
tryRenameMe
to ups
intrait ImplicitVals {
implicit def x = 42
}
object Bug {
class Ret(x: Int) {
def withDefault(a: String = "") = a + x
}
def apply()(implicit x: Int) = {
new Ret(x)
}
}
class Bug extends ImplicitVals {
val tryRenameMe = Bug().withDefault()
}
results in Bug
being transformed intoclass Bug extends ImplicitVals {
val ups = ().wit = Bug()Bug()().withDefault()
}
completely breaking the code.
Leave a comment
Skip tree printing for rename refactorings
This commit implements rename refactorings without employing tree printing.
The ASTs from the presentation compiler are only used to find all occurrences
of the symbol that is being renamed. This information is then used to generate
changes directly.
Fix #1002643, Fix #1002622, Fix #1001966
Branch: master
Commit: scala-ide:0d8fab7dff
This commit implements rename refactorings without employing tree printing.
The ASTs from the presentation compiler are only used to find all occurrences
of the symbol that is being renamed. This information is then used to generate
changes directly.
Fix #1002643, Fix #1002622, Fix #1001966
Branch: master
Commit: scala-ide:0d8fab7dff
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|