[ObjCExport] Split ObjCExportHeaderGenerator and ObjCExportTranslator

KT-64226
This commit is contained in:
Sebastian Sellmair
2023-12-13 13:59:56 +01:00
committed by Space Team
parent 74c39b149f
commit aab9a606ce
3 changed files with 1298 additions and 1277 deletions
@@ -0,0 +1,20 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.konan.objcexport
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
interface ObjCExportProblemCollector {
fun reportWarning(text: String)
fun reportWarning(declaration: DeclarationDescriptor, text: String)
fun reportException(throwable: Throwable)
object SILENT : ObjCExportProblemCollector {
override fun reportWarning(text: String) {}
override fun reportWarning(declaration: DeclarationDescriptor, text: String) {}
override fun reportException(throwable: Throwable) {}
}
}