Skip to content

Commit 0886b2d

Browse files
committed
release: v2.0.20-0.9.3
1 parent 7ed27cd commit 0886b2d

File tree

8 files changed

+12
-19
lines changed

8 files changed

+12
-19
lines changed

.changelog/v2.0.20-0.9.3.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Kotlin version: `v2.0.20`

buildSrc/src/main/kotlin/IProject.kt

+1-1
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.1.0-Beta1"
13+
val ktVersion = "2.0.20"
1414
val pluginVersion = "0.9.3"
1515

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

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

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import org.jetbrains.kotlin.fir.plugin.createConeType
3636
import org.jetbrains.kotlin.fir.resolve.ScopeSession
3737
import org.jetbrains.kotlin.fir.resolve.SessionHolderImpl
3838
import org.jetbrains.kotlin.fir.resolve.getSuperTypes
39-
import org.jetbrains.kotlin.fir.resolve.toRegularClassSymbol
4039
import org.jetbrains.kotlin.fir.resolve.transformers.ReturnTypeCalculatorForFullBodyResolve
4140
import org.jetbrains.kotlin.fir.scopes.impl.FirClassDeclaredMemberScope
4241
import org.jetbrains.kotlin.fir.scopes.processAllFunctions
@@ -372,7 +371,7 @@ class SuspendTransformFirTransformer(
372371
}
373372

374373
val overriddenAnnotation = firAnnotation(
375-
overriddenFunction, markAnnotation, overriddenFunction.getContainingClassSymbol()
374+
overriddenFunction, markAnnotation, overriddenFunction.getContainingClassSymbol(session)
376375
) ?: return@processOverridden
377376

378377
val overriddenAnnoData = overriddenAnnotation.toTransformAnnotationData(
@@ -501,11 +500,11 @@ class SuspendTransformFirTransformer(
501500
return if (resultConeType is ConeErrorType) {
502501
buildErrorTypeRef {
503502
diagnostic = resultConeType.diagnostic
504-
coneType = resultConeType
503+
type = resultConeType
505504
}
506505
} else {
507506
buildResolvedTypeRef {
508-
coneType = resultConeType
507+
type = resultConeType
509508
}
510509
}
511510
}
@@ -564,7 +563,7 @@ class SuspendTransformFirTransformer(
564563
val copied = notCompileAnnotationsCopied.map { a ->
565564
buildAnnotation {
566565
annotationTypeRef = buildResolvedTypeRef {
567-
coneType = a.resolvedType
566+
type = a.resolvedType
568567
}
569568
this.typeArguments.addAll(a.typeArguments)
570569
this.argumentMapping = buildAnnotationArgumentMapping {
@@ -599,7 +598,7 @@ class SuspendTransformFirTransformer(
599598
val includeAnnotation = buildAnnotation {
600599
argumentMapping = buildAnnotationArgumentMapping()
601600
annotationTypeRef = buildResolvedTypeRef {
602-
coneType = classId.createConeType(session)
601+
type = classId.createConeType(session)
603602
}
604603
}
605604
add(includeAnnotation)
@@ -624,7 +623,7 @@ class SuspendTransformFirTransformer(
624623
val includeAnnotation = buildAnnotation {
625624
argumentMapping = buildAnnotationArgumentMapping()
626625
annotationTypeRef = buildResolvedTypeRef {
627-
coneType = classId.createConeType(session)
626+
type = classId.createConeType(session)
628627
}
629628
}
630629
add(includeAnnotation)

compiler/suspend-transform-plugin/src/testData/codegen/opt.fir.ir.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ FILE fqName:<root> fileName:/Main.kt
102102
$this: GET_VAR '<this>: <root>.OptInTest declared in <root>.OptInTest.runBlocking' type=<root>.OptInTest origin=null
103103
FUN name:run visibility:public modality:FINAL <> ($this:<root>.OptInTest) returnType:kotlin.Int [suspend]
104104
annotations:
105-
OptIn(markerClass = [CLASS_REFERENCE 'CLASS ANNOTATION_CLASS name:OneOptAnno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass<<root>.OneOptAnno>] type=kotlin.Array<out kotlin.reflect.KClass<out kotlin.Annotation>> varargElementType=kotlin.reflect.KClass<out kotlin.Annotation>)
105+
OptIn(markerClass = [CLASS_REFERENCE 'CLASS ANNOTATION_CLASS name:OneOptAnno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass<<root>.OneOptAnno>])
106106
Values(target = CLASS_REFERENCE 'CLASS CLASS name:OptInTest modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<<root>.OptInTest>)
107107
JvmBlocking(baseName = <null>, suffix = <null>, asProperty = <null>)
108108
JvmAsync(baseName = <null>, suffix = <null>, asProperty = <null>)

gradle/libs.versions.toml

+1-1
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.1.0-Beta1"
6+
kotlin = "2.0.20"
77

88
[libraries]
99

kotlin-js-store/yarn.lock

-7
Original file line numberDiff line numberDiff line change
@@ -1159,13 +1159,6 @@ kind-of@^6.0.2:
11591159
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
11601160
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
11611161

1162-
1163-
version "2.0.0"
1164-
resolved "https://registry.npmmirror.com/kotlin-web-helpers/-/kotlin-web-helpers-2.0.0.tgz#b112096b273c1e733e0b86560998235c09a19286"
1165-
integrity sha512-xkVGl60Ygn/zuLkDPx+oHj7jeLR7hCvoNF99nhwXMn8a3ApB4lLiC9pk4ol4NHPjyoCbvQctBqvzUcp8pkqyWw==
1166-
dependencies:
1167-
format-util "^1.0.5"
1168-
11691162
loader-runner@^4.2.0:
11701163
version "4.3.0"
11711164
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1"

tests/test-js/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildscript {
1515
mavenCentral()
1616
}
1717
dependencies {
18-
classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:2.1.0-Beta1-0.9.3")
18+
classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:2.0.20-0.9.3")
1919
classpath("org.jetbrains.kotlin:kotlin-compiler:2.1.0-Beta1")
2020
}
2121
}

tests/test-jvm/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ buildscript {
1919
mavenCentral()
2020
}
2121
dependencies {
22-
classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:2.1.0-Beta1-0.9.3")
22+
classpath("love.forte.plugin.suspend-transform:suspend-transform-plugin-gradle:2.0.20-0.9.3")
2323
classpath("org.jetbrains.kotlin:kotlin-compiler:2.1.0-Beta1")
2424
}
2525
}

0 commit comments

Comments
 (0)