removeForced

open fun removeForced()(source)

Forcibly removes this node from the AST. If it cannot be removed from the parent with remove(), it will try to remove its parent instead, until it finds a node that can be removed, or no parent can be found.

Since everything at CompilationUnit level is removable, this method will only (silently) fail when the node is in a detached AST fragment.