file facade index: Fix indexing files without top level members by mistake
This commit is contained in:
@@ -58,14 +58,6 @@ public class IdeStubIndexService extends StubIndexService {
|
|||||||
sink.occurrence(JetFilePartClassIndex.INSTANCE.getKey(), partFqName.asString());
|
sink.occurrence(JetFilePartClassIndex.INSTANCE.getKey(), partFqName.asString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO drop
|
|
||||||
JetFile jetFile = stub.getPsi();
|
|
||||||
if (jetFile != null) {
|
|
||||||
JvmFileClassInfo fileClassInfo = JvmFileClassUtil.getFileClassInfoNoResolve(jetFile);
|
|
||||||
sink.occurrence(JetFileFacadeFqNameIndex.INSTANCE.getKey(), fileClassInfo.getFacadeClassFqName().asString());
|
|
||||||
sink.occurrence(JetFilePartClassIndex.INSTANCE.getKey(), fileClassInfo.getFileClassFqName().asString());
|
|
||||||
}
|
|
||||||
|
|
||||||
List<StringRef> partNames = ((KotlinFileStubForIde) stub).getFacadePartSimpleNames();
|
List<StringRef> partNames = ((KotlinFileStubForIde) stub).getFacadePartSimpleNames();
|
||||||
if (partNames != null) {
|
if (partNames != null) {
|
||||||
for (StringRef partName : partNames) {
|
for (StringRef partName : partNames) {
|
||||||
|
|||||||
Reference in New Issue
Block a user