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
82 lines
3.7 KiB
Plaintext
Vendored
82 lines
3.7 KiB
Plaintext
Vendored
Tower Data Context:
|
|
Element 0
|
|
Scope: FirDefaultStarImportingScope
|
|
Element 1
|
|
Scope: FirExplicitStarImportingScope
|
|
Element 2
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 3
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 4
|
|
Scope: FirPackageMemberScope
|
|
Element 5
|
|
Scope: FirExplicitSimpleImportingScope
|
|
Element 6
|
|
Scope: FirScriptDeclarationsScope
|
|
Classifiers:
|
|
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
|
|
Functions
|
|
FirNamedFunctionSymbol public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
|
|
FirNamedFunctionSymbol public final fun scriptFunction(): R|kotlin/Int|
|
|
FirNamedFunctionSymbol public? final? fun unusedScriptFunction(p: String): <implicit>
|
|
Properties:
|
|
FirPropertySymbol public final val $$result: R|kotlin/Unit|
|
|
public get(): R|kotlin/Unit|
|
|
Element 7
|
|
Scope: FirLocalScope
|
|
Properties:
|
|
FirPropertySymbol lval args: R|kotlin/Array<kotlin/String>|
|
|
Element 8
|
|
Context receivers:
|
|
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: <script-scriptInsideLastStatement.kts>
|
|
lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public final? class ScriptClass : R|kotlin/Any|
|
|
public final fun scriptFunction(): R|kotlin/Int|
|
|
public? final? fun unusedScriptFunction(p: String): <implicit>
|
|
init
|
|
public final fun foo(i: R|kotlin/Int|, action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit|
|
|
public final val $$result: R|kotlin/Unit|
|
|
public get(): R|kotlin/Unit|
|
|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
|
|
Label: <script>
|
|
Element 9
|
|
Scope: FirLocalScope
|
|
Properties:
|
|
FirValueParameterSymbol it: R|kotlin/Int|
|
|
Element 10
|
|
Scope: FirLocalScope
|
|
|
|
FILE: [ResolvedTo(IMPORTS)] scriptInsideLastStatement.kts
|
|
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: [ResolvedTo(TYPES)] <script-scriptInsideLastStatement.kts>
|
|
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
|
|
|
|
public final? [ResolvedTo(RAW_FIR)] class ScriptClass : R|kotlin/Any| {
|
|
public? [ResolvedTo(RAW_FIR)] constructor(): R|ScriptClass| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] val memberProperty: <implicit> = LAZY_EXPRESSION
|
|
public? [ResolvedTo(RAW_FIR)] get(): <implicit>
|
|
|
|
}
|
|
|
|
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun scriptFunction(): R|kotlin/Int| {
|
|
^scriptFunction Int(42)
|
|
}
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] fun unusedScriptFunction([ResolvedTo(RAW_FIR)] p: String): <implicit> { LAZY_BLOCK }
|
|
|
|
[ResolvedTo(RAW_FIR)] init { LAZY_BLOCK }
|
|
|
|
public final [ResolvedTo(CONTRACTS)] fun foo([ResolvedTo(CONTRACTS)] i: R|kotlin/Int|, [ResolvedTo(CONTRACTS)] action: R|(kotlin/Int) -> kotlin/Unit|): R|kotlin/Unit| {
|
|
action#(i#)
|
|
}
|
|
|
|
public final [ResolvedTo(BODY_RESOLVE)] val $$result: R|kotlin/Unit| = R|/foo|(R|/scriptFunction|(), <L> = [ResolvedTo(BODY_RESOLVE)] foo@fun <anonymous>([ResolvedTo(BODY_RESOLVE)] it: R|kotlin/Int|): R|kotlin/Unit| <inline=NoInline> {
|
|
R|/scriptFunction|()
|
|
}
|
|
)
|
|
public [ResolvedTo(BODY_RESOLVE)] get(): R|kotlin/Unit| |