Why is delete() not a supported operation on AstWrapperPsiElement? Follow ANONYMOUS Created August 04, 2005 22:30 Why is this? It makes PSI programming just a little bit harder with my custom language.
Keith Lea wrote:
Your could try to override it with some code like
getNode().getTreeParent().removeChild(getNode())
Shouldn't that work?
Of course it would be nice if that were the default behavior, but there may be reasons
which are against that...
Sascha
yes, it does.
The idea still is that you won't be using simple delete(), but will write a
more semantic-rich delete-something-from-some-parent method, that will make
all the service stuff like adding or removing tokens.
Eugene.
"Keith Lea" <keith@cs.oswego.edu> wrote in message
news:dcu1e5$3vg$1@is.intellij.net...
custom