scala.tools.refactoring.util.SourceWithMarker
The actual implementation of the movement
The actual implementation of the movement
Returns a possibly empty sequence of markers, that this movement could lead to,
starting at the given argument. For example, the movement 'a'.atLeastOnce
applied
to the beginning of "aaa", would return Seq(2, 1)
. Note that elements at the start
of the returned sequence are favored over elements coming later, so greedy movements
should always return the biggest jumps at the beginning.
A Movement that can be applied in one direction.
The difference between a SimpleMovement and a Movement is that SimpleMovement is missing the
backward
method. Apart from that, the documentation for Movement applies. Note that movements can be combined with simple movements, so there is no need to implement a full movement unless you need it.