Skip to content

Commit debbff2

Browse files
committed
Updated CSM sources for template generation instead of source sets matching (#372)
1 parent d51c6f8 commit debbff2

File tree

71 files changed

+876
-2106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+876
-2106
lines changed

compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt renamed to compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/VersionSpecificApi.kt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
@file:Suppress("FunctionName")
@@ -44,17 +44,10 @@ interface VersionSpecificApi {
4444
origin: IrDeclarationOrigin = this.origin,
4545
): IrValueParameter
4646

47-
fun IrSimpleFunction.addExtensionReceiverVS(
48-
type: IrType,
49-
origin: IrDeclarationOrigin = IrDeclarationOrigin.DEFINED,
50-
): IrValueParameter
51-
5247
var IrFieldBuilder.isFinalVS: Boolean
5348

5449
var IrCall.originVS: IrStatementOrigin?
5550

56-
var IrConstructor.isPrimaryVS: Boolean
57-
5851
val IrConstructor.parametersVS: List<IrValueParameter>
5952

6053
val IrConstructorCall.argumentsVS: List<IrExpression?>
@@ -91,7 +84,6 @@ interface VersionSpecificApi {
9184
): IrConstructorCallImpl
9285

9386
fun IrFunction.valueParametersVS(): List<IrValueParameter>
94-
val IrFunction.extensionReceiverParameterVS: IrValueParameter?
9587
var IrFunction.dispatchReceiverParameterVS: IrValueParameter?
9688

9789
fun IrMemberAccessExpressionData.buildFor(access: IrMemberAccessExpression<*>)

compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/extension/IrUtils.kt renamed to compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/extension/IrUtils.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.rpc.codegen.extension
@@ -19,7 +19,6 @@ import org.jetbrains.kotlin.ir.types.SimpleTypeNullability
1919
import org.jetbrains.kotlin.ir.types.impl.IrSimpleTypeImpl
2020
import org.jetbrains.kotlin.ir.types.impl.makeTypeProjection
2121
import org.jetbrains.kotlin.ir.util.dump
22-
import org.jetbrains.kotlin.name.Name
2322
import org.jetbrains.kotlin.types.Variance
2423
import java.util.*
2524

@@ -76,16 +75,10 @@ inline fun IrProperty.addBackingFieldUtil(builder: IrFieldBuilder.() -> Unit = {
7675
}
7776
}
7877

79-
// originally appeared as 'NameUtils.propertyDelegateName'
80-
fun propertyDelegateName(propertyName: Name): Name {
81-
return Name.identifier("${propertyName.asString()}\$delegate")
82-
}
83-
8478
inline fun <T, R> Collection<T>.memoryOptimizedMap(transform: (T) -> R): List<R> {
8579
return mapTo(ArrayList<R>(size), transform).compactIfPossible()
8680
}
8781

88-
8982
inline fun <T, R> Collection<T>.memoryOptimizedMapIndexed(transform: (index: Int, T) -> R): List<R> {
9083
return mapIndexedTo(ArrayList<R>(size), transform).compactIfPossible()
9184
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.rpc.codegen.extension
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.rpc.codegen.extension

compiler-plugin/compiler-plugin-backend/src/main/latest/kotlinx/rpc/codegen/RpcIrServiceProcessorDelegate.kt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)