From bd9e69d196e23bea8807051c3630514d99c249c3 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Thu, 21 Dec 2023 17:03:27 +0100 Subject: [PATCH] [LL FIR] SealedClassesInheritorsCaclulatorPreAnalysisHandler: do not calculate inheritors for binary files It fails with ast loading ^KT-64468 --- .../SealedClassesInheritorsCaclulatorPreAnalysisHandler.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/compiler/based/SealedClassesInheritorsCaclulatorPreAnalysisHandler.kt b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/compiler/based/SealedClassesInheritorsCaclulatorPreAnalysisHandler.kt index dca574a9bad..7fb93624a22 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/compiler/based/SealedClassesInheritorsCaclulatorPreAnalysisHandler.kt +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/compiler/based/SealedClassesInheritorsCaclulatorPreAnalysisHandler.kt @@ -42,7 +42,9 @@ class SealedClassesInheritorsCaclulatorPreAnalysisHandler( } val ktFilesByModule = moduleStructure.modules.associateWith { testModule -> - testServices.ktModuleProvider.getModuleFiles(testModule).filterIsInstance() + testServices.ktModuleProvider.getModuleFiles(testModule) + .filterIsInstance() + .filterNot(KtFile::isCompiled) } for ((testModule, ktFiles) in ktFilesByModule) {