retrieve file using file language

This commit is contained in:
peter
2012-01-25 12:35:17 +01:00
parent c9704493fe
commit f4a158db34
@@ -182,7 +182,7 @@ public abstract class PsiAnchor {
@Override
@Nullable
public PsiFile getFile() {
return SelfElementInfo.restoreFileFromVirtual(myVirtualFile, myProject, myLanguage);
return SelfElementInfo.restoreFileFromVirtual(myVirtualFile, myProject, myFileLanguage);
}
@Override
@@ -274,6 +274,7 @@ public abstract class PsiAnchor {
}
@Override
@Nullable
public PsiFile getFile() {
return SelfElementInfo.restoreFileFromVirtual(myFile, myProject);
}
@@ -323,6 +324,7 @@ public abstract class PsiAnchor {
}
}
@Nullable
public static PsiElement restoreFromStubIndex(PsiFileWithStubSupport fileImpl,
int index,
IStubElementType elementType) {