[FIR/Native] Move fir-related code from backend.native module to new one
^KT-61249
This commit is contained in:
committed by
Space Team
parent
fdab636a1b
commit
8bcd1f4efa
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* 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.name
|
||||
|
||||
object NativeRuntimeNames {
|
||||
private val kotlinNativePackage = FqName("kotlin.native")
|
||||
private val kotlinNativeInternalPackage = kotlinNativePackage.child(Name.identifier("internal"))
|
||||
object Annotations {
|
||||
val symbolNameClassId = ClassId(kotlinNativePackage, Name.identifier("SymbolName"))
|
||||
val cNameClassId = ClassId(kotlinNativePackage, Name.identifier("CName"))
|
||||
val exportForCppRuntimeClassId = ClassId(kotlinNativeInternalPackage, Name.identifier("ExportForCppRuntime"))
|
||||
val exportForCompilerClassId = ClassId(kotlinNativeInternalPackage, Name.identifier("ExportForCompiler"))
|
||||
val gcUnsafeCallClassId = ClassId(kotlinNativeInternalPackage, Name.identifier("GCUnsafeCall"))
|
||||
}
|
||||
}
|
||||
+8
@@ -14,6 +14,14 @@ object NativeStandardInteropNames {
|
||||
internal val ObjCObject = Name.identifier("ObjCObject")
|
||||
val ExperimentalForeignApi = Name.identifier("ExperimentalForeignApi")
|
||||
|
||||
val objCDirectClassId = ClassId(cInteropPackage, Name.identifier("ObjCDirect"))
|
||||
val objCMethodClassId = ClassId(cInteropPackage, Name.identifier("ObjCMethod"))
|
||||
val objCObjectClassId = ClassId(cInteropPackage, Name.identifier("ObjCObject"))
|
||||
val objCFactoryClassId = ClassId(cInteropPackage, Name.identifier("ObjCFactory"))
|
||||
val objCConstructorClassId = ClassId(cInteropPackage, Name.identifier("ObjCConstructor"))
|
||||
val externalObjCClassClassId = ClassId(cInteropPackage, Name.identifier("ExternalObjCClass"))
|
||||
|
||||
|
||||
object ForwardDeclarations {
|
||||
private val cNamesPackage = FqName("cnames")
|
||||
val cNamesStructsPackage = cNamesPackage.child(Name.identifier("structs"))
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* 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.native.interop
|
||||
|
||||
data class ObjCMethodInfo(val selector: String,
|
||||
val encoding: String,
|
||||
val isStret: Boolean,
|
||||
val directSymbol: String?)
|
||||
Reference in New Issue
Block a user