mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: do not index a symbol if qualifier has NONE type (in this case code is not compilable).
This commit is contained in:
@@ -153,7 +153,7 @@ public interface JavacRef {
|
||||
public static JavacElementRefBase fromElement(Element element, Element qualifier, JavacNameTable nameTableCache) {
|
||||
if (qualifier != null) {
|
||||
TypeMirror type = qualifier.asType();
|
||||
if (type == null || type.getKind() == TypeKind.NONE) {
|
||||
if (type == null || type.getKind() == TypeKind.NONE || type.getKind() == TypeKind.OTHER) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user