[LL FIR] LLFirPhaseUpdater: add missing update for code fragment block

This commit is contained in:
Dmitrii Gridin
2023-09-18 16:57:39 +02:00
committed by Space Team
parent e5f0356e16
commit 9ff3871a8b
3 changed files with 9 additions and 7 deletions
@@ -1,14 +1,14 @@
BEFORE MODIFICATION:
CODE FRAGMENT: {
local final [ResolvedTo(RAW_FIR)] class Foo : R|kotlin/Any| {
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] constructor([ResolvedTo(RAW_FIR)] [CorrespondingProperty=<local>/x] x: R|kotlin/Int|): R|<local>/Foo| {
local final [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=<local>/x] x: R|kotlin/Int|): R|<local>/Foo| {
super<R|kotlin/Any|>()
}
public final [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] get(): R|kotlin/Int|
public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val x: R|kotlin/Int| = R|<local>/x|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] get(): R|kotlin/Int|
public final [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
public final [ResolvedTo(BODY_RESOLVE)] fun foo(): R|kotlin/Unit| {
this@R|<local>/Foo|.R|<local>/foo|()
}
@@ -1,9 +1,9 @@
BEFORE MODIFICATION:
CODE FRAGMENT: {
local final [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] a: R|kotlin/Int|, [ResolvedTo(RAW_FIR)] b: R|kotlin/String|): R|kotlin/Unit| {
local final [ResolvedTo(BODY_RESOLVE)] fun foo([ResolvedTo(BODY_RESOLVE)] a: R|kotlin/Int|, [ResolvedTo(BODY_RESOLVE)] b: R|kotlin/String|): R|kotlin/Unit| {
}
local final [ResolvedTo(RAW_FIR)] fun bar(): R|kotlin/Unit| {
local final [ResolvedTo(BODY_RESOLVE)] fun bar(): R|kotlin/Unit| {
R|/foo|(Int(1), String(foo))
}