How to obtain line and column number for PsiClass and PsiMethod?
Answered
I have an instance of a PsiClass and PsiMethod. How can I obtain the line and column number of these identifiers?
Please sign in to leave a comment.
You can use PSI offset/textrange and then pass to DocumentUtil.
https://plugins.jetbrains.com/docs/intellij/documents.html#are-there-any-utilities-available-for-working-with-documents