Psi changes

What alternative to use to get all references of a PsiVariable (currently
psiSearchHelper.findReferences(variable, variable.getUseScope(), false))?

What alternatives exist for PsiSuperMethodUtil.findSuperMethods()?

Thanks,
Tom

3 comments

Tom wrote:

What alternative to use to get all references of a PsiVariable
(currently psiSearchHelper.findReferences(variable,
variable.getUseScope(), false))?


com.intellij.psi.search.searches.ReferencesSearch.search(...).findAll()

What alternatives exist for PsiSuperMethodUtil.findSuperMethods()?


SuperMethodsSearch.search(...).findAll()

Sascha

0

Thanks, Sascha.

>> What alternatives exist for PsiSuperMethodUtil.findSuperMethods()?


SuperMethodsSearch.search(...).findAll()


Unfortunately, search requires much more method parameters which I don't
know where to get from... is there some useful documentation available?

0

Tom wrote:
>> SuperMethodsSearch.search(...).findAll()


Unfortunately, search requires much more method parameters which I don't
know where to get from... is there some useful documentation available?


There's also PsiMethod.findSuperMethods() which is probably easier to use ;)

Sascha

0

Please sign in to leave a comment.