scala.tools.refactoring.transformation.TransformableSelections
Replaces the selection by replacement
.
Replaces the selection by replacement
.
whether the original tree hierarchy must be preserved or could be reduced if possible. E.g. a selection contains all trees of the enclosing block:
preserveHierarchy = true
the block will be replaced by replacement
preserveHierarchy = false
the block will remain with replacement
as its only child tree