class AstParallelizer.DettachPoint {
public void reattach() {
// If the place-holder no longer has a parent, this implies the function
// has been removed from the AST.
if (placeHolder.getParent() != null) {
if (before == null) {
placeHolder.getParent().addChildrenToFront(original);
placeHolder.getParent().removeChildAfter(original);
} else {
placeHolder.getParent().addChildAfter(original, before);
placeHolder.getParent().removeChildAfter(original);
}
}
}
}