[FIR][renderer] add phase renderer for file and file annotations container

^KT-56543
This commit is contained in:
Dmitrii Gridin
2023-03-22 15:31:04 +01:00
committed by Space Team
parent 706ff6b61f
commit 8c599a84af
51 changed files with 918 additions and 442 deletions
@@ -1,4 +1,5 @@
FILE: annonymousClass.kt
FILE: [IMPORTS] annonymousClass.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun x(): R|kotlin/Unit| {
[BODY_RESOLVE] lval x: R|<anonymous>| = object : R|kotlin/Any| {
private [BODY_RESOLVE] constructor(): R|<anonymous>| {
@@ -1,4 +1,5 @@
FILE: class.kt
FILE: [IMPORTS] class.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] class B : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|B| {
super<R|kotlin/Any|>()
@@ -1,4 +1,5 @@
FILE: class.kt
FILE: [IMPORTS] class.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] class B : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|B| {
super<R|kotlin/Any|>()
@@ -1,4 +1,5 @@
FILE: constructorParameter.kt
FILE: [IMPORTS] constructorParameter.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] class A : R|kotlin/Any| {
public [BODY_RESOLVE] constructor([BODY_RESOLVE] x: R|kotlin/String|): R|A| {
super<R|kotlin/Any|>()
@@ -1,4 +1,5 @@
FILE: enum.kt
FILE: [IMPORTS] enum.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] enum class Enum : R|kotlin/Enum<Enum>| {
private [BODY_RESOLVE] constructor([BODY_RESOLVE] x: R|kotlin/Int|): R|Enum| {
super<R|kotlin/Enum<Enum>|>()
@@ -1,3 +1,4 @@
FILE: funWithoutTypes.kt
FILE: [IMPORTS] funWithoutTypes.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun main(): R|kotlin/Unit| {
}
@@ -1,4 +1,5 @@
FILE: functionValueParameter.kt
FILE: [IMPORTS] functionValueParameter.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun bar([BODY_RESOLVE] a: R|kotlin/Int|, [BODY_RESOLVE] b: R|(kotlin/Boolean) -> kotlin/Unit|): R|kotlin/Unit| {
}
public final [BODY_RESOLVE] class A : R|kotlin/Any| {
@@ -1,4 +1,5 @@
FILE: functionWithImplicitType.kt
FILE: [IMPORTS] functionWithImplicitType.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T> checkSubtype([BODY_RESOLVE] t: R|T|): R|T| {
^checkSubtype R|<local>/t|
}
@@ -1,4 +1,5 @@
FILE: functionWithImplicitType.kt
FILE: [IMPORTS] functionWithImplicitType.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun <[BODY_RESOLVE] T> checkSubtype([BODY_RESOLVE] t: R|T|): R|T| {
^checkSubtype R|<local>/t|
}
@@ -1,4 +1,5 @@
FILE: lambdaInImplicitFunBody.kt
FILE: [IMPORTS] lambdaInImplicitFunBody.kt
[BODY_RESOLVE] annotations container
public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| {
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
}
@@ -1,4 +1,5 @@
FILE: lambdaInImplicitPropertyBody.kt
FILE: [IMPORTS] lambdaInImplicitPropertyBody.kt
[BODY_RESOLVE] annotations container
public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| {
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
}
@@ -1,4 +1,5 @@
FILE: lambdasInWithBodyFunction.kt
FILE: [IMPORTS] lambdasInWithBodyFunction.kt
[BODY_RESOLVE] annotations container
public final inline [BODY_RESOLVE] fun <[BODY_RESOLVE] T, [BODY_RESOLVE] R> with([BODY_RESOLVE] receiver: R|T|, [BODY_RESOLVE] block: R|T.() -> R|): R|R| {
^with R|<local>/block|.R|SubstitutionOverride<kotlin/Function1.invoke: R|R|>|(R|<local>/receiver|)
}
@@ -1,4 +1,5 @@
FILE: localClass.kt
FILE: [IMPORTS] localClass.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] fun x(): R|kotlin/Unit| {
local final [BODY_RESOLVE] class Local : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|Local| {
@@ -1,4 +1,5 @@
FILE: propertyWithGetterAndSetter.kt
FILE: [IMPORTS] propertyWithGetterAndSetter.kt
[BODY_RESOLVE] annotations container
public final [BODY_RESOLVE] var withGetterAndSetter: R|kotlin/Int| = Int(42)
public [BODY_RESOLVE] get(): R|kotlin/Int| {
^ F|/withGetterAndSetter|
@@ -1,4 +1,5 @@
FILE: propertyWithSetter.kt
FILE: [IMPORTS] propertyWithSetter.kt
[BODY_RESOLVE] annotations container
public abstract [BODY_RESOLVE] class Foo : R|kotlin/Any| {
public [BODY_RESOLVE] constructor(): R|Foo| {
super<R|kotlin/Any|>()