[FIR] Save IR dumps to .ir.txt files instead of .txt in tests

This is needed to avoid clashes between different dumps from different
  handlers
This commit is contained in:
Dmitriy Novozhilov
2021-10-01 12:31:45 +03:00
committed by TeamCityServer
parent 0f076e16ed
commit b454fcc1e0
1175 changed files with 1678 additions and 2577 deletions
@@ -15,4 +15,3 @@ class MyMap<K : Any, V : Any> : AbstractMutableMap<K, V> {
}
}
@@ -29,4 +29,3 @@ private fun <A : Any?> allCandidatesResult(allCandidates: Collection<MyCandidate
}
)
}
@@ -1,12 +0,0 @@
abstract class BaseFirBuilder<T : Any?> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
inline fun <T : Any?> withCapturedTypeParameters(block: Function0<T>): T {
return block.invoke()
}
}
@@ -1,29 +0,0 @@
FILE fqName:<root> fileName:/BaseFirBuilder.kt
CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]
CONSTRUCTOR visibility:public <> () returnType:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder> [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
FUN name:withCapturedTypeParameters visibility:public modality:FINAL <T> ($this:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>, block:kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>) returnType:T of <root>.BaseFirBuilder.withCapturedTypeParameters [inline]
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]
$this: VALUE_PARAMETER name:<this> type:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>
VALUE_PARAMETER name:block index:0 type:kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters <T> (block: kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>): T of <root>.BaseFirBuilder.withCapturedTypeParameters [inline] declared in <root>.BaseFirBuilder'
CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of <root>.BaseFirBuilder.withCapturedTypeParameters origin=INVOKE
$this: GET_VAR 'block: kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters> declared in <root>.BaseFirBuilder.withCapturedTypeParameters' type=kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters> origin=VARIABLE_AS_FUNCTION
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
overridden:
public open fun hashCode (): kotlin.Int declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
@@ -1,13 +0,0 @@
abstract class BaseFirBuilder<T : Any?> {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
inline fun <T : Any?> withCapturedTypeParameters(block: Function0<T>): T {
return block.invoke()
}
}
@@ -1,29 +0,0 @@
FILE fqName:<root> fileName:/BaseFirBuilder.kt
CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]
CONSTRUCTOR visibility:public <> () returnType:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder> [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
FUN name:withCapturedTypeParameters visibility:public modality:FINAL <T> ($this:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>, block:kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>) returnType:T of <root>.BaseFirBuilder.withCapturedTypeParameters [inline]
TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?]
$this: VALUE_PARAMETER name:<this> type:<root>.BaseFirBuilder<T of <root>.BaseFirBuilder>
VALUE_PARAMETER name:block index:0 type:kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters <T> (block: kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters>): T of <root>.BaseFirBuilder.withCapturedTypeParameters [inline] declared in <root>.BaseFirBuilder'
CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of <root>.BaseFirBuilder.withCapturedTypeParameters origin=INVOKE
$this: GET_VAR 'block: kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters> declared in <root>.BaseFirBuilder.withCapturedTypeParameters' type=kotlin.Function0<T of <root>.BaseFirBuilder.withCapturedTypeParameters> origin=VARIABLE_AS_FUNCTION
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
overridden:
public open fun hashCode (): kotlin.Int declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
@@ -62,4 +62,3 @@ fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List<Plat
}
}
}
@@ -62,4 +62,3 @@ fun resolveClashesIfAny(container: ComponentContainer, clashResolvers: List<Plat
}
}
}
@@ -77,4 +77,3 @@ inline fun <T : Any?> TypeRemapper.withinScope(irTypeParametersContainer: IrType
<this>.leaveScope()
return result
}
@@ -3,9 +3,9 @@ interface IrType {
}
interface TypeRemapper {
abstract fun enterScope(irTypeParametersContainer: IrTypeParametersContainer)
abstract fun remapType(type: IrType): IrType
abstract fun leaveScope()
abstract fun enterScope(irTypeParametersContainer: IrTypeParametersContainer)
abstract fun remapType(type: IrType): IrType
abstract fun leaveScope()
}
@@ -77,4 +77,3 @@ inline fun <T : Any?> TypeRemapper.withinScope(irTypeParametersContainer: IrType
<this>.leaveScope()
return result
}
@@ -57,4 +57,3 @@ class Impl : A, B {
fun box(): String {
return "OK"
}
@@ -34,4 +34,3 @@ class DeclarationsConverter : BaseConverter {
}
}
@@ -47,4 +47,3 @@ fun box(): String {
}
return obj.foo()
}
@@ -69,4 +69,3 @@ object Final : Modality {
}
}
@@ -65,4 +65,3 @@ class FinalList : SomeList<String> {
}
}
@@ -49,4 +49,3 @@ val String?.baz: String
} /*~> Unit */
return ""
}
@@ -49,4 +49,3 @@ val String?.baz: String
} /*~> Unit */
return ""
}
@@ -2,4 +2,3 @@ fun foo() {
val ref1: KProperty0<String> = SomeJavaClass::someJavaField
val ref2: KProperty0<String> = SomeJavaClass::someJavaField
}
@@ -21,7 +21,7 @@ interface Base {
}
interface Delegate : Base {
abstract fun bar()
abstract fun bar()
}
@@ -75,4 +75,3 @@ data class DataClass : Derived, Delegate {
}
}
@@ -36,4 +36,3 @@ class UserImpl {
}
}
@@ -12,4 +12,3 @@ fun box(): String {
val list: List<String> = toList(array = array) as List<String>
return list.get(index = 0)
}
@@ -19,4 +19,3 @@ class Some {
}
}
@@ -50,4 +50,3 @@ fun foo(candidate: Candidate) {
}
}
}
@@ -37,4 +37,3 @@ fun Reader.consumeRestOfQuotedSequence(sb: StringBuilder, quote: Char) {
ch = <this>.nextChar()
}
}
@@ -11,4 +11,3 @@ fun create(s: String): String {
fun create(b: Boolean): String {
return create()
}
@@ -9,4 +9,3 @@ fun box(): String {
}
/*-> @EnhancedNullability Function<Fun, String> */)
}
-11
View File
@@ -1,11 +0,0 @@
FILE fqName:<root> fileName:/kt42496.kt
FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String
BLOCK_BODY
VAR name:javaClass type:<root>.JavaClass2 [val]
CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.JavaClass2' type=<root>.JavaClass2 origin=null
CALL 'public open fun setSomething (value: kotlin.Any?): kotlin.Unit declared in <root>.JavaClass1' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val javaClass: <root>.JavaClass2 [val] declared in <root>.box' type=<root>.JavaClass2 origin=null
value: CONST String type=kotlin.String value="OK"
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
CALL 'public open fun getSomething (): kotlin.String? declared in <root>.JavaClass2' type=kotlin.String? origin=GET_PROPERTY
$this: GET_VAR 'val javaClass: <root>.JavaClass2 [val] declared in <root>.box' type=<root>.JavaClass2 origin=null
@@ -11,4 +11,3 @@ class Owner {
}
}
@@ -20,4 +20,3 @@ abstract class AbstractSymbol<E> where E : Recursive<E>, E : Something {
}
}
@@ -1,4 +1,3 @@
fun foo(t: Throwable) {
t.setStackTrace(p0 = t.getStackTrace())
}