[LL FIR] LLFirPhaseUpdater: add missing update for code fragment block
This commit is contained in:
committed by
Space Team
parent
e5f0356e16
commit
9ff3871a8b
+2
@@ -42,6 +42,8 @@ internal object LLFirPhaseUpdater {
|
|||||||
statement.accept(PhaseUpdatingTransformer, newPhase)
|
statement.accept(PhaseUpdatingTransformer, newPhase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is FirCodeFragment -> target.block.accept(PhaseUpdatingTransformer, newPhase)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -1,14 +1,14 @@
|
|||||||
BEFORE MODIFICATION:
|
BEFORE MODIFICATION:
|
||||||
CODE FRAGMENT: {
|
CODE FRAGMENT: {
|
||||||
local final [ResolvedTo(RAW_FIR)] class Foo : R|kotlin/Any| {
|
local final [ResolvedTo(BODY_RESOLVE)] 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| {
|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=Foo] constructor([ResolvedTo(BODY_RESOLVE)] [CorrespondingProperty=<local>/x] x: R|kotlin/Int|): R|<local>/Foo| {
|
||||||
super<R|kotlin/Any|>()
|
super<R|kotlin/Any|>()
|
||||||
}
|
}
|
||||||
|
|
||||||
public final [ResolvedTo(RAW_FIR)] [IsFromPrimaryConstructor=true] val x: R|kotlin/Int| = R|<local>/x|
|
public final [ResolvedTo(BODY_RESOLVE)] [IsFromPrimaryConstructor=true] val x: R|kotlin/Int| = R|<local>/x|
|
||||||
public [ResolvedTo(RAW_FIR)] [ContainingClassKey=Foo] get(): R|kotlin/Int|
|
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|()
|
this@R|<local>/Foo|.R|<local>/foo|()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,9 +1,9 @@
|
|||||||
BEFORE MODIFICATION:
|
BEFORE MODIFICATION:
|
||||||
CODE FRAGMENT: {
|
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))
|
R|/foo|(Int(1), String(foo))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user