From 3496f69f3309492cac5ac31b7893c0b12e319dd1 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 4 Apr 2023 08:25:58 +0200 Subject: [PATCH] [cfg] don't traverse annotation arguments for decompiled code ^ KT-57768 decompiled code have no annotation arguments expressions, but search for them causes decompiling of code which is slow and unneeded --- .../kotlin/cfg/ControlFlowInformationProviderImpl.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/frontend/cfg/src/org/jetbrains/kotlin/cfg/ControlFlowInformationProviderImpl.kt b/compiler/frontend/cfg/src/org/jetbrains/kotlin/cfg/ControlFlowInformationProviderImpl.kt index 89b5e3f0670..711cf160a5b 100644 --- a/compiler/frontend/cfg/src/org/jetbrains/kotlin/cfg/ControlFlowInformationProviderImpl.kt +++ b/compiler/frontend/cfg/src/org/jetbrains/kotlin/cfg/ControlFlowInformationProviderImpl.kt @@ -951,6 +951,11 @@ class ControlFlowInformationProviderImpl private constructor( } private fun markAnnotationArguments() { + if (subroutine.containingKtFile.isCompiled) { + //annotation arguments are not included in the decompiled code, + //so no need to search for them + return + } if (subroutine is KtAnnotationEntry) { markAnnotationArguments(subroutine) } else {