Obtaining a PsiFile from a PsiType

Answered

How can a PsiFile be obtained from a PsiType?

I assume that the PsiTypes that I will be working with will be PsiClassTypes, if it's easier with the subclass instead of the superclass.

0
1 comment

Ross,

Having an instance of PsiClassTypes, you can get the PsiElement and its containing file:

psiClassType.getPsiContext().getContainingFile()
0

Please sign in to leave a comment.