[IR] Don't print multifile/synthetic facade class names in irText tests
This only applies to JVM and fq-names in declaration references in IR dumps. This enables us to run more irText tests on platforms other than JVM (see KT-58605).
This commit is contained in:
committed by
Space Team
parent
cc76bbd09d
commit
f2031ae642
+2
-2
@@ -23,7 +23,7 @@ FILE fqName:<root> fileName:/delegateFieldWithAnnotations.kt
|
||||
annotations:
|
||||
Ann
|
||||
EXPRESSION_BODY
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.LazyKt.lazy>): kotlin.Lazy<T of kotlin.LazyKt.lazy> declared in kotlin.LazyKt' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.lazy>): kotlin.Lazy<T of kotlin.lazy> declared in kotlin' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
<T>: kotlin.Int
|
||||
initializer: FUN_EXPR type=kotlin.Function0<kotlin.Int> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.Int
|
||||
@@ -34,7 +34,7 @@ FILE fqName:<root> fileName:/delegateFieldWithAnnotations.kt
|
||||
correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val]
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun <get-test1> (): kotlin.Int declared in <root>'
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null
|
||||
<T>: kotlin.Int
|
||||
$receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy<kotlin.Int> visibility:private [final,static]' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
thisRef: CONST Null type=kotlin.Nothing? value=null
|
||||
|
||||
-2
@@ -1,8 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_STDLIB
|
||||
// DUMP_LOCAL_DECLARATION_SIGNATURES
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
// MUTE_SIGNATURE_COMPARISON_K2: ANY
|
||||
// ^ KT-57428
|
||||
|
||||
Vendored
+4
-4
@@ -7,16 +7,16 @@ val test1: Int /* by */
|
||||
// Mangled name (compatible mode: false): {}test1#<anonymous>#static(){}kotlin.Int
|
||||
// Mangled name (compatible mode: true): test1$delegate#<anonymous>#static(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #<get-test1>(){}
|
||||
// Public signature: /test1.<get-test1>|-5735092642142423279[0]
|
||||
// Mangled name (compatible mode: false): {}test1#<anonymous>#static(){}
|
||||
// Mangled name (compatible mode: true): test1$delegate#<anonymous>#static(){}
|
||||
local fun <anonymous>(): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: #<get-test1>(){}kotlin.Int
|
||||
// Public signature: /test1.<get-test1>|3978508226793108919[0]
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name (compatible mode: false): {}test1#<anonymous>#static(){}
|
||||
// Mangled name (compatible mode: true): test1$delegate#<anonymous>#static(){}
|
||||
// Mangled name: #<get-test1>(){}
|
||||
// Public signature: /test1.<get-test1>|-5735092642142423279[0]
|
||||
get(): Int
|
||||
|
||||
// CHECK:
|
||||
|
||||
+2
-2
@@ -35,7 +35,7 @@ FILE fqName:<root> fileName:/localDelegatedPropertiesWithAnnotations.kt
|
||||
BLOCK_BODY
|
||||
LOCAL_DELEGATED_PROPERTY name:test type:kotlin.Int flags:val
|
||||
VAR PROPERTY_DELEGATE name:test$delegate type:kotlin.Lazy<kotlin.Int> [val]
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.LazyKt.lazy>): kotlin.Lazy<T of kotlin.LazyKt.lazy> declared in kotlin.LazyKt' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.lazy>): kotlin.Lazy<T of kotlin.lazy> declared in kotlin' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
<T>: kotlin.Int
|
||||
initializer: FUN_EXPR type=kotlin.Function0<kotlin.Int> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.Int
|
||||
@@ -45,7 +45,7 @@ FILE fqName:<root> fileName:/localDelegatedPropertiesWithAnnotations.kt
|
||||
FUN DELEGATED_PROPERTY_ACCESSOR name:<get-test> visibility:local modality:FINAL <> () returnType:kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <get-test> (): kotlin.Int declared in <root>.foo'
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null
|
||||
<T>: kotlin.Int
|
||||
$receiver: GET_VAR 'val test$delegate: kotlin.Lazy<kotlin.Int> declared in <root>.foo' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
thisRef: CONST Null type=kotlin.Nothing? value=null
|
||||
|
||||
Vendored
+2
-2
@@ -37,7 +37,7 @@ FILE fqName:<root> fileName:/localDelegatedPropertiesWithAnnotations.kt
|
||||
annotations:
|
||||
A(x = 'foo/test')
|
||||
VAR PROPERTY_DELEGATE name:test$delegate type:kotlin.Lazy<kotlin.Int> [val]
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.LazyKt.lazy>): kotlin.Lazy<T of kotlin.LazyKt.lazy> declared in kotlin.LazyKt' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
CALL 'public final fun lazy <T> (initializer: kotlin.Function0<T of kotlin.lazy>): kotlin.Lazy<T of kotlin.lazy> declared in kotlin' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
<T>: kotlin.Int
|
||||
initializer: FUN_EXPR type=kotlin.Function0<kotlin.Int> origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:kotlin.Int
|
||||
@@ -47,7 +47,7 @@ FILE fqName:<root> fileName:/localDelegatedPropertiesWithAnnotations.kt
|
||||
FUN DELEGATED_PROPERTY_ACCESSOR name:<get-test> visibility:local modality:FINAL <> () returnType:kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='local final fun <get-test> (): kotlin.Int declared in <root>.foo'
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null
|
||||
CALL 'public final fun getValue <T> (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.getValue declared in kotlin' type=kotlin.Int origin=null
|
||||
<T>: kotlin.Int
|
||||
$receiver: GET_VAR 'val test$delegate: kotlin.Lazy<kotlin.Int> declared in <root>.foo' type=kotlin.Lazy<kotlin.Int> origin=null
|
||||
thisRef: CONST Null type=kotlin.Nothing? value=null
|
||||
|
||||
Vendored
-2
@@ -1,6 +1,4 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
|
||||
annotation class A(val x: String)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user