[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
This commit is contained in:
Anna Kozlova
2023-04-04 08:25:58 +02:00
committed by Space Team
parent d6e14f37a7
commit 3496f69f33
@@ -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 {