Skip to content

Commit

Permalink
Downgrade to Kotlin 2.1.10-RC
Browse files Browse the repository at this point in the history
  • Loading branch information
ting-yuan authored and mkmuir0 committed Jan 9, 2025
1 parent 7605f9b commit c61fe6a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import com.intellij.psi.impl.source.PsiClassReferenceType
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
import org.jetbrains.kotlin.builtins.jvm.JavaToKotlinClassMap
import org.jetbrains.kotlin.codegen.ClassBuilderMode
import org.jetbrains.kotlin.codegen.OwnerKind
import org.jetbrains.kotlin.codegen.signature.BothSignatureWriter
import org.jetbrains.kotlin.codegen.state.KotlinTypeMapper
import org.jetbrains.kotlin.config.LanguageVersionSettingsImpl
Expand Down Expand Up @@ -892,13 +893,17 @@ class ResolverImpl(

@KspExperimental
override fun getJvmName(accessor: KSPropertyAccessor): String? {
return resolvePropertyAccessorDeclaration(accessor)?.let(typeMapper::mapFunctionName)
return resolvePropertyAccessorDeclaration(accessor)?.let {
typeMapper.mapFunctionName(it, OwnerKind.IMPLEMENTATION)
}
}

@KspExperimental
override fun getJvmName(declaration: KSFunctionDeclaration): String? {
// function names might be mangled if they receive inline class parameters or they are internal
return (resolveFunctionDeclaration(declaration) as? FunctionDescriptor)?.let(typeMapper::mapFunctionName)
return (resolveFunctionDeclaration(declaration) as? FunctionDescriptor)?.let {
typeMapper.mapFunctionName(it, OwnerKind.IMPLEMENTATION)
}
}

@KspExperimental
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ abstract class AbstractKSPTest(frontend: FrontendKind<*>) : DisposableTest() {
"-classpath", classpath,
"-d", module.outDir.path
)
compileJavaFiles(javaFiles, options)
compileJavaFiles(javaFiles, options, assertions = JUnit5Assertions)
}

fun runTest(@TestDataFile path: String) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copied from kotlinc
org.gradle.jvmargs=-Duser.country=US -Dkotlin.daemon.jvm.options=-Xmx4096m -Dfile.encoding=UTF-8

kotlinBaseVersion=2.1.20-Beta1
kotlinBaseVersion=2.1.10-RC
agpBaseVersion=7.3.1
agpTestVersion=8.7.1
intellijVersion=233.13135.128
Expand Down

0 comments on commit c61fe6a

Please sign in to comment.