03fc0fd381
It's not really necessary if the information about if the lambda was a trailing lambda can be directly saved in FirAnonymousFunctionExpression. Removing the FIR node uncovered a couple of bugs (UNINITIALIZED_ENUM_ENTRY, ERROR_IN_CONTRACT_DESCRIPTION) that were caused by assuming that a lambda is always a trailing lambda. #KT-66124
79 lines
3.3 KiB
Plaintext
Vendored
79 lines
3.3 KiB
Plaintext
Vendored
Tower Data Context:
|
|
Element 0
|
|
Scope: FirDefaultStarImportingScope
|
|
Element 1
|
|
Scope: FirExplicitStarImportingScope
|
|
Element 2
|
|
Scope: FirExplicitStarImportingScope
|
|
Element 3
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 4
|
|
Scope: FirDefaultSimpleImportingScope
|
|
Element 5
|
|
Scope: FirExplicitSimpleImportingScope
|
|
Element 6
|
|
Scope: FirPackageMemberScope
|
|
Element 7
|
|
Scope: FirExplicitSimpleImportingScope
|
|
Element 8
|
|
Scope: FirScriptDeclarationsScope
|
|
Classifiers:
|
|
FirRegularClassSymbol public final? class ScriptClass : R|kotlin/Any|
|
|
Functions
|
|
FirNamedFunctionSymbol public? final? fun foo(i: Int, action: ( (Int) -> 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: <implicit>
|
|
public get(): <implicit>
|
|
Element 9
|
|
Scope: FirLocalScope
|
|
Element 10
|
|
Context receivers:
|
|
FirScriptSymbol context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: <script-statement.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: Int, action: ( (Int) -> Unit )): R|kotlin/Unit|
|
|
public final val $$result: <implicit>
|
|
public get(): <implicit>
|
|
Type: kotlin.script.templates.standard.ScriptTemplateWithArgs
|
|
Label: <script>
|
|
Element 11
|
|
Scope: FirLocalScope
|
|
Element 12
|
|
Scope: FirLocalScope
|
|
|
|
FILE: [ResolvedTo(IMPORTS)] statement.kts
|
|
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
|
|
SCRIPT: [ResolvedTo(TYPES)] <script-statement.kts>
|
|
[ResolvedTo(TYPES)] 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(BODY_RESOLVE)] init {
|
|
R|/scriptFunction|()
|
|
}
|
|
|
|
public? final? [ResolvedTo(RAW_FIR)] fun foo([ResolvedTo(RAW_FIR)] i: Int, [ResolvedTo(RAW_FIR)] action: ( (Int) -> Unit )): R|kotlin/Unit| { LAZY_BLOCK }
|
|
|
|
public final [ResolvedTo(RAW_FIR)] val $$result: <implicit> = foo#(LAZY_EXPRESSION, LAZY_EXPRESSION)
|
|
public [ResolvedTo(RAW_FIR)] get(): <implicit> |