PsiReturnStatement -> surrounding PsiMethod Permanently deleted user Created January 14, 2005 19:08 Is there an more elegant way of getting the surrounding PsiMethod for a PsiReturnStatement than just walking up the parents?Tom
Thomas Singer (MoTJ) wrote:
I can't think of any other than something like
PsiTreeUtil.getParentOfType(returnStatement, PsiMethod.class)
Sascha
Thanks.