Files
kotlin-fork/analysis/low-level-api-fir/testdata/getOrBuildFir/calls/setOperatorScript.txt
T
Dmitrii Gridin da71a152cd [FIR] update FirRenderer for scripts
^KT-60728
2023-07-28 17:49:14 +00:00

47 lines
2.0 KiB
Plaintext

KT element: KtArrayAccessExpression
FIR element: FirResolvedNamedReferenceImpl
FIR source kind: KtRealSourceElementKind
FIR element rendered:
R|test/B.set|
FIR FILE:
FILE: [ResolvedTo(IMPORTS)] setOperatorScript.kts
package test
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
[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| {
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(STATUS)] fun set([ResolvedTo(STATUS)] i: R|kotlin/Int|, [ResolvedTo(STATUS)] a: R|test/B|): R|kotlin/Unit| {
}
public final operator [ResolvedTo(STATUS)] fun get([ResolvedTo(STATUS)] i: R|kotlin/Int|): R|test/B| {
}
public final operator [ResolvedTo(STATUS)] fun inc(): R|test/B| {
}
}
public final [ResolvedTo(RAW_FIR)] var a: R|test/B| = R|test/B.B|(Int(1))
public [ResolvedTo(RAW_FIR)] get(): R|test/B|
public [ResolvedTo(RAW_FIR)] set([ResolvedTo(RAW_FIR)] value: R|test/B|): R|kotlin/Unit|
public final [ResolvedTo(RAW_FIR)] val $$result: R|test/B| = {
[ResolvedTo(RAW_FIR)] lval <array>: R|test/B| = R|test/a|
[ResolvedTo(RAW_FIR)] lval <index_0>: R|kotlin/Int| = Int(2)
[ResolvedTo(RAW_FIR)] 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(RAW_FIR)] get(): R|test/B|