IDEA-137302 Editor marks import in JSP as unused even when it's used

This commit is contained in:
Dmitry Avdeev
2015-03-11 17:19:40 +03:00
parent bf4f4371f5
commit cfead7f1b4
2 changed files with 3 additions and 2 deletions
@@ -17,10 +17,11 @@ package com.intellij.psi.impl.source.jsp.jspJava;
import com.intellij.psi.PsiFile;
import com.intellij.psi.PsiImportStatement;
import com.intellij.psi.SyntheticElement;
/**
* @author peter
*/
public interface JspxImportStatement extends PsiImportStatement {
public interface JspxImportStatement extends PsiImportStatement, SyntheticElement {
PsiFile getDeclarationFile();
}
@@ -77,7 +77,7 @@ public abstract class PsiAnchor {
PsiAnchor stubRef = createStubReference(element, file);
if (stubRef != null) return stubRef;
if (!element.isPhysical() && element instanceof PsiCompiledElement|| element instanceof LightElement) {
if (!element.isPhysical() && element instanceof PsiCompiledElement || element instanceof LightElement || element instanceof SyntheticElement) {
return new HardReference(element);
}