insertAfter(target, targetNext,
append, append);
}
public void deletedChild(LinkedListTree parent, int index, LinkedListTree child) {
LinkedListToken start = child.getStartToken();
LinkedListToken stop = child.getStopToken();
LinkedListToken startPrev = start.getPrev();
LinkedListToken stopNext = stop.getNext();
if (startPrev != null) {
startPrev.setNext(stopNext);
} else if (stopNext != null) {
stopNext.setPrev(startPrev);
}
// just to save possible confusion, break links out from the
// removed token list too,
start.setPrev(null);
stop.setNext(null);