4f0bc86ad4
Now we can resolve this generated property in the same way as other regular properties. This is the pre-step for independent script initializers ^KT-65344 ^KT-65523
47 lines
2.2 KiB
Plaintext
Vendored
47 lines
2.2 KiB
Plaintext
Vendored
KT element: KtArrayAccessExpression
|
|
FIR element: FirFunctionCallImpl
|
|
FIR source kind: DesugaredPostfixInc
|
|
|
|
FIR element rendered:
|
|
R|<local>/<array>|.R|test/B.get|(R|<local>/<index_0>|)
|
|
|
|
FIR FILE:
|
|
FILE: [ResolvedTo(IMPORTS)] setOperatorScript.kts
|
|
package test
|
|
|
|
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: [ResolvedTo(TYPES)] <script-setOperatorScript.kts>
|
|
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public final [ResolvedTo(STATUS)] class B : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=B] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=test/B.n] n: R|kotlin/Int|): R|test/B| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val n: R|kotlin/Int| = R|<local>/n|
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=B] get(): R|kotlin/Int|
|
|
|
|
public final operator [ResolvedTo(CONTRACTS)] fun set([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] a: R|test/B|): R|kotlin/Unit| {
|
|
}
|
|
|
|
public final operator [ResolvedTo(CONTRACTS)] fun get([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|): R|test/B| {
|
|
}
|
|
|
|
public final operator [ResolvedTo(CONTRACTS)] fun inc(): R|test/B| {
|
|
}
|
|
|
|
}
|
|
|
|
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] var a: R|test/B| = R|test/B.B|(Int(1))
|
|
public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] get(): R|test/B|
|
|
public [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] set([ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] value: R|test/B|): R|kotlin/Unit|
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] val $$result: R|test/B| = {
|
|
[ResolvedTo(BODY_RESOLVE)] lval <array>: R|test/B| = R|test/a|
|
|
[ResolvedTo(BODY_RESOLVE)] lval <index_0>: R|kotlin/Int| = Int(2)
|
|
[ResolvedTo(BODY_RESOLVE)] lval <unary>: R|test/B| = R|<local>/<array>|.R|test/B.get|(R|<local>/<index_0>|)
|
|
R|<local>/<array>|.R|test/B.set|(R|<local>/<index_0>|, R|<local>/<unary>|.R|test/B.inc|())
|
|
R|<local>/<unary>|
|
|
}
|
|
|
|
public [ResolvedTo(BODY_RESOLVE)] get(): R|test/B| |