Events for method creation/removal

Hello,

In my plugin I want to be able to detect methods creations and deletions (and changes). Currently I'm using a PsiTreeChangeListener for that purpose but the code is pretty nasty and I'm not sure if I cover all cases (for example adding a parameter to an existing method). Is there any other method to do that or can anyone give me advice how to ensure that my listener correctly recognizes all possible cases? The project my plugin will be used with is pretty huge.

1 comment

There is no higher-level API. Note that in a case of a batch update (code change after updating from the VCS) there is no way to distinguish a change in the signature of a method from an addition of a method and a removal of another one.

0

Please sign in to leave a comment.