Skip to content

Commit 9891a2c

Browse files
nikpachoosbogolepov
authored andcommitted
fix: swift export name
1 parent e62a9a9 commit 9891a2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/compiler/server/controllers/CompilerRestController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CompilerRestController(private val kotlinProjectExecutor: KotlinProjectExe
3434
KotlinTranslatableCompiler.JS -> kotlinProjectExecutor.convertToJsIr(project)
3535
KotlinTranslatableCompiler.WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
3636
KotlinTranslatableCompiler.COMPOSE_WASM -> kotlinProjectExecutor.convertToWasm(project, debugInfo)
37-
KotlinTranslatableCompiler.SWIFT -> kotlinProjectExecutor.convertToSwift(project).let {
37+
KotlinTranslatableCompiler.SWIFT_EXPORT -> kotlinProjectExecutor.convertToSwift(project).let {
3838
// TODO: A hack to avoid changing the return type of the function.
3939
object : TranslationResultWithJsCode(it.swiftCode, it.compilerDiagnostics, it.exception) {}
4040
}

src/main/kotlin/com/compiler/server/model/KotlinTranslatableCompiler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ enum class KotlinTranslatableCompiler {
44
JS,
55
WASM,
66
COMPOSE_WASM,
7-
SWIFT,
7+
SWIFT_EXPORT,
88
}

0 commit comments

Comments
 (0)