Files
kotlin-fork/compiler/testData/ir/irText/firProblems/timesInBuilder.sig.kt.txt
T
Sergej Jaskiewicz 6e8283a6fe [IR] Dump IdSignatures and mangled names in irText tests
The reason #1 for this feature is that we want to test IdSignatures
generated for declarations. Currently, there is no (easy) way to ensure
that a change in the signature building logic doesn't cause any breaking
changes wrt klibs.

Now, most IdSignatures include hashed mangled names in them, so even if
we catch a regression where the included hash changes, there would be no
way of knowing immediately what caused it, unless we'd also have mangled
names in the expectations.

The reason #2 is to test the manglers themselves. Currently, there are
no tests for them. They heavily duplicate each other, this is already
causing issues (see KT-57427) that would be very hard to catch without
these tests.

^KT-58238 Fixed
2023-05-15 18:20:45 +00:00

86 lines
2.8 KiB
Kotlin
Vendored

// CHECK:
// Mangled name: {}spentTime
// Public signature: /spentTime|1981050075795716305[0]
val spentTime: Column
// CHECK JVM_IR:
// Mangled name: #<get-spentTime>(){}Column
// Public signature: /spentTime.<get-spentTime>|3550920958732313011[0]
get
// CHECK:
// Mangled name: ArgumentsBuilder
// Public signature: /ArgumentsBuilder|null[0]
class ArgumentsBuilder {
// CHECK:
// Mangled name: ArgumentsBuilder{}arguments
// Public signature: /ArgumentsBuilder.arguments|-8426540515456712294[0]
val arguments: MutableList<Expression>
// CHECK JVM_IR:
// Mangled name: ArgumentsBuilder#<get-arguments>(){}kotlin.collections.MutableList<Expression>
// Public signature: /ArgumentsBuilder.arguments.<get-arguments>|7867094825942376438[0]
get
// CHECK:
// Mangled name: ArgumentsBuilder#<init>(){}
// Public signature: /ArgumentsBuilder.<init>|-5645683436151566731[0]
constructor() /* primary */
// CHECK:
// Mangled name: ArgumentsBuilder#unaryPlus@Expression(){}
// Public signature: /ArgumentsBuilder.unaryPlus|-2215785624257595840[0]
operator fun Expression.unaryPlus(): Unit
}
// CHECK:
// Mangled name: Column
// Public signature: /Column|null[0]
class Column {
// CHECK:
// Mangled name: Column#<init>(){}
// Public signature: /Column.<init>|-5645683436151566731[0]
constructor() /* primary */
}
// CHECK:
// Mangled name: Expression
// Public signature: /Expression|null[0]
class Expression {
// CHECK:
// Mangled name: Expression#<init>(){}
// Public signature: /Expression.<init>|-5645683436151566731[0]
constructor() /* primary */
}
// CHECK:
// Mangled name: #countIssues(kotlin.Function1<ArgumentsBuilder,kotlin.Unit>){}
// Public signature: [ File 'timesInBuilder.kt' <- /countIssues|-3006686104129982000[0] ]
private fun countIssues(restrictionsBuilder: @ExtensionFunctionType Function1<ArgumentsBuilder, Unit>): Unit
// CHECK JVM_IR:
// Mangled name: #id(0:0){0§<kotlin.Any?>}0:0
// Public signature: /id|-6791396263062521506[0]
fun <I : Any?> id(arg: I): I
// CHECK JVM_IR:
// Mangled name: #integer(kotlin.String){}Column
// Public signature: /integer|-7515290819735707124[0]
fun integer(name: String): Column
// CHECK JVM_IR:
// Mangled name: #lessEq@Column(0:0){0§<kotlin.Comparable<0:0>>}Expression
// Public signature: /lessEq|144930027420774562[0]
infix fun <T : Comparable<T>> Column.lessEq(t: T): Expression
// CHECK JVM_IR:
// Mangled name: #select@Column(0:0;0:0){0§<kotlin.Comparable<0:0>>}Expression
// Public signature: /select|-7119975056707584867[0]
fun <T : Comparable<T>> Column.select(t: T, r: T): Expression
// CHECK:
// Mangled name: #test(kotlin.Long){}
// Public signature: [ File 'timesInBuilder.kt' <- /test|-2956403500052581138[0] ]
private fun test(x: Long): Unit