Skip to content

Commit deb4140

Browse files
committed
release: v2.2.0-0.13.1
1 parent c1a7beb commit deb4140

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.changelog/v2.2.0-0.13.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Kotlin version: `v2.2.0`

buildSrc/src/main/kotlin/IProject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ object IProject : ProjectDetail() {
1010
const val HOMEPAGE = "https://github.com/ForteScarlet/kotlin-suspend-transform-compiler-plugin"
1111

1212
// Remember the libs.versions.toml!
13-
val ktVersion = "2.2.0-RC2"
13+
val ktVersion = "2.2.0"
1414
val pluginVersion = "0.13.1"
1515

1616
override val version: String = "$ktVersion-$pluginVersion"

compiler/suspend-transform-plugin/src/main/kotlin/love/forte/plugin/suspendtrans/fir/SuspendTransformFirTransformer.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ class SuspendTransformFirTransformer(
164164
return map
165165
}
166166

167-
// private val cache: FirCache<Pair<FirClassSymbol<*>, FirClassDeclaredMemberScope?>, Map<Name, Map<FirNamedFunctionSymbol, FunData>>?, Nothing?> =
168167
private val cache: FirCache<FirCacheKey, Map<Name, Map<FirNamedFunctionSymbol, SyntheticFunData>>?, Nothing?> =
169168
session.firCachesFactory.createCache { cacheKey, c ->
170169
val (symbol, scope) = cacheKey
@@ -928,9 +927,9 @@ class SuspendTransformFirTransformer(
928927
): Map<Name, Map<FirNamedFunctionSymbol, SyntheticFunData>>? {
929928
if (declaredScope == null) return null
930929

931-
fun check(targetPlatform: TargetPlatform): Boolean {
932-
val platform = classSymbol.moduleData.platform
930+
val platform = classSymbol.moduleData.platform
933931

932+
fun check(targetPlatform: TargetPlatform): Boolean {
934933
return when {
935934
platform.isJvm() && targetPlatform == TargetPlatform.JVM -> true
936935
platform.isJs() && targetPlatform == TargetPlatform.JS -> true
@@ -966,7 +965,7 @@ class SuspendTransformFirTransformer(
966965

967966

968967
val transformerFunctionSymbol = transformerFunctionSymbolMap[transformer]
969-
?: error("Cannot find transformer function symbol for transformer: $transformer")
968+
?: error("Cannot find transformer function symbol for transformer: $transformer in $platform")
970969

971970
// 读不到注解的参数?
972971
// 必须使用 anno.getXxxArgument(Name(argument name)),

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kotlinx-coroutines = "1.8.0"
33
kotlinx-serialization = "1.7.1"
44
google-auto-service = "1.0.1"
55
# Remember the `IProject.ktVersion`!
6-
kotlin = "2.2.0-RC2"
6+
kotlin = "2.2.0"
77

88
# https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-publish-libraries.html#configure-the-project
99
# https://github.com/vanniktech/gradle-maven-publish-plugin

0 commit comments

Comments
 (0)