mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-79072 - SOE: SmartPsiElementPointerImpl.getContainingFile
This commit is contained in:
+5
@@ -45,6 +45,11 @@ class SmartPsiFileRangePointerImpl extends SmartPsiElementPointerImpl<PsiFile> i
|
||||
return new SelfElementInfo(project, range, Identikit.fromTypes(PsiElement.class, null, LanguageUtil.getRootLanguage(containingFile)), containingFile, forInjected);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiFile getContainingFile() {
|
||||
return getElementInfo().restoreFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PsiFile getElement() {
|
||||
if (getRange() == null) return null; // range is invalid
|
||||
|
||||
Reference in New Issue
Block a user