FirRenderer: slightly change/refactor declaration rendering

This commit is contained in:
Mikhail Glukhikh
2022-07-08 17:13:24 +02:00
committed by Space
parent ac34fe3306
commit 7ce5100946
45 changed files with 330 additions and 329 deletions
@@ -8,7 +8,7 @@ FILE: class.kt
}
private final [BODY_RESOLVE] val y: <ERROR TYPE REF: Symbol not found for C> = this@R|/B|.R|/B.q|()
[BODY_RESOLVE] private get(): <ERROR TYPE REF: Symbol not found for C>
private [BODY_RESOLVE] get(): <ERROR TYPE REF: Symbol not found for C>
public final [BODY_RESOLVE] fun foo([BODY_RESOLVE] a: <ERROR TYPE REF: Symbol not found for A>): <ERROR TYPE REF: Cannot infer argument for type parameter R> {
^foo <Inapplicable(INAPPLICABLE): kotlin/with>#<R|ERROR CLASS: Cannot infer argument for type parameter T|, R|ERROR CLASS: Cannot infer argument for type parameter R|>(R|<local>/a|, <L> = [BODY_RESOLVE] with@fun <ERROR TYPE REF: Cannot infer argument for type parameter T>.<anonymous>(): <ERROR TYPE REF: Cannot infer argument for type parameter R> <inline=Unknown, kind=EXACTLY_ONCE> {
@@ -5,6 +5,6 @@ FILE: constructorParameter.kt
}
public final [BODY_RESOLVE] val x: R|kotlin/String| = R|<local>/x|
[BODY_RESOLVE] public get(): R|kotlin/String|
public [BODY_RESOLVE] get(): R|kotlin/String|
}
@@ -5,7 +5,7 @@ FILE: enum.kt
}
public final [BODY_RESOLVE] val x: R|kotlin/Int| = R|<local>/x|
[BODY_RESOLVE] public get(): R|kotlin/Int|
public [BODY_RESOLVE] get(): R|kotlin/Int|
public final static [BODY_RESOLVE] enum entry A: R|Enum| = object : R|Enum| {
private [BODY_RESOLVE] constructor(): R|<anonymous>| {
@@ -3,4 +3,4 @@ FILE: functionWithImplicitType.kt
^checkSubtype R|<local>/t|
}
public final [BODY_RESOLVE] val ab: R|kotlin/collections/List<kotlin/Int>?| = R|/checkSubtype|<R|kotlin/collections/List<kotlin/Int>?|>(Q|java/util/Collections|.R|java/util/Collections.emptyList|<R|kotlin/Int|>())
[BODY_RESOLVE] public get(): R|kotlin/collections/List<kotlin/Int>?|
public [BODY_RESOLVE] get(): R|kotlin/collections/List<kotlin/Int>?|
@@ -11,7 +11,7 @@ FILE: lambdaInImplicitPropertyBody.kt
}
public final [BODY_RESOLVE] val a: R|kotlin/Int| = Int(10)
[BODY_RESOLVE] public get(): R|kotlin/Int|
public [BODY_RESOLVE] get(): R|kotlin/Int|
public final [BODY_RESOLVE] val x: R|kotlin/String| = R|/with|<R|kotlin/Int|, R|kotlin/String|>(this@R|/B|.R|/B.a|, <L> = [BODY_RESOLVE] with@fun R|kotlin/Int|.<anonymous>(): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
^ this@R|special/anonymous|.R|kotlin/Int.toString|().R|/let|<R|kotlin/String|, R|kotlin/String|>(<L> = [BODY_RESOLVE] let@fun <anonymous>([BODY_RESOLVE] it: R|kotlin/String|): R|kotlin/String| <inline=Inline, kind=UNKNOWN> {
@@ -20,6 +20,6 @@ FILE: lambdaInImplicitPropertyBody.kt
)
}
)
[BODY_RESOLVE] public get(): R|kotlin/String|
public [BODY_RESOLVE] get(): R|kotlin/String|
}
@@ -1,8 +1,8 @@
FILE: propertyWithGetterAndSetter.kt
public final [BODY_RESOLVE] var withGetterAndSetter: R|kotlin/Int| = Int(42)
[BODY_RESOLVE] public get(): R|kotlin/Int| {
public [BODY_RESOLVE] get(): R|kotlin/Int| {
^ F|/withGetterAndSetter|
}
[BODY_RESOLVE] public set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| {
public [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit| {
F|/withGetterAndSetter| = R|<local>/value|
}
@@ -5,8 +5,8 @@ FILE: propertyWithSetter.kt
}
public abstract [BODY_RESOLVE] var id: R|kotlin/Int|
[BODY_RESOLVE] public get(): R|kotlin/Int|
[BODY_RESOLVE] protected set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit|
public [BODY_RESOLVE] get(): R|kotlin/Int|
protected [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit|
}
public final [BODY_RESOLVE] class Bar : R|Foo| {
@@ -15,8 +15,8 @@ FILE: propertyWithSetter.kt
}
public final override [BODY_RESOLVE] var id: R|kotlin/Int| = Int(1)
[BODY_RESOLVE] public get(): R|kotlin/Int|
[BODY_RESOLVE] public set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit|
public [BODY_RESOLVE] get(): R|kotlin/Int|
public [BODY_RESOLVE] set([BODY_RESOLVE] value: R|kotlin/Int|): R|kotlin/Unit|
}
public final [BODY_RESOLVE] fun test(): R|kotlin/Unit| {