From aa04c0b5df1d2cebdec57757ad92157701170ae2 Mon Sep 17 00:00:00 2001 From: Vladimir Ilmov Date: Wed, 2 Sep 2020 14:13:40 +0200 Subject: [PATCH] Parent call already on KotlinBuiltInDecompiler.kt:79 --- .../src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt index 36cafe3f15c..d871317b3a3 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt @@ -118,7 +118,7 @@ open class KotlinMetadataFileIndexBase(classOfIndex: Class, indexFunction: if (fileContent.fileType == KotlinBuiltInFileType && fileContent.fileName.endsWith(MetadataPackageFragment.DOT_METADATA_FILE_EXTENSION) ) { - val builtins = BuiltInDefinitionFile.read(fileContent.content, fileContent.file.parent) + val builtins = BuiltInDefinitionFile.read(fileContent.content, fileContent.file) (builtins as? BuiltInDefinitionFile)?.let { builtinDefFile -> val proto = builtinDefFile.proto proto.class_List.singleOrNull()?.let { cls ->