FIR: render value parameter/lambda/accessor resolve phase if RenderMode.renderDeclarationResolvePhase is enabled

This commit is contained in:
Ilya Kirillov
2021-02-25 18:45:25 +01:00
parent 869a153327
commit ded234074d
15 changed files with 32 additions and 29 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
FILE: main.kt
public final [CONTRACTS] class WithElvis : R|kotlin/Any| {
public [CONTRACTS] constructor(value: R|kotlin/String?|): R|elvis/WithElvis| {
public [CONTRACTS] constructor([STATUS] value: R|kotlin/String?|): R|elvis/WithElvis| {
super<R|kotlin/Any|>()
}
public final [CONTRACTS] val value: R|kotlin/String?| = R|<local>/value|
public get(): R|kotlin/String?|
[STATUS] public get(): R|kotlin/String?|
public final [BODY_RESOLVE] fun foo(): R|kotlin/String| {
^foo this@R|elvis/WithElvis|.R|elvis/WithElvis.value| ?: String()
+1 -1
View File
@@ -5,7 +5,7 @@ FILE: main.kt
}
public final [BODY_RESOLVE] val x: R|kotlin/Int|
public get(): R|kotlin/Int|
[BODY_RESOLVE] public get(): R|kotlin/Int|
init {
this@R|/Foo|.R|/Foo.x| = Int(42)
+1 -1
View File
@@ -1,7 +1,7 @@
FILE: main.kt
public final [CONTRACTS] class Foo : R|kotlin/Any| {
public final [CONTRACTS] val x: R|kotlin/Int|
public get(): R|kotlin/Int|
[STATUS] public get(): R|kotlin/Int|
public [BODY_RESOLVE] constructor(): R|Foo| {
super<R|kotlin/Any|>()
+1 -1
View File
@@ -7,6 +7,6 @@ FILE: main.kt
public final [STATUS] fun foo(): R|kotlin/Unit| {
[RAW_FIR] lval y: <implicit> = Double(2.0)
}
public final [IMPLICIT_TYPES_BODY_RESOLVE] fun bar(x: R|kotlin/Int|, y: R|kotlin/Int|): R|kotlin/Int| {
public final [IMPLICIT_TYPES_BODY_RESOLVE] fun bar([IMPLICIT_TYPES_BODY_RESOLVE] x: R|kotlin/Int|, [IMPLICIT_TYPES_BODY_RESOLVE] y: R|kotlin/Int|): R|kotlin/Int| {
^bar R|<local>/x|.R|kotlin/Int.plus|(R|<local>/y|)
}
@@ -1,5 +1,5 @@
FILE: myProperty.kt
public final [IMPLICIT_TYPES_BODY_RESOLVE] val myProperty: R|kotlin/Int|
public get(): R|kotlin/Int| {
[IMPLICIT_TYPES_BODY_RESOLVE] public get(): R|kotlin/Int| {
^ Int(42)
}