FIR2IR: set CATCH_PARAMETER origin for catch parameters

This commit is contained in:
Mikhail Glukhikh
2023-01-24 17:28:51 +01:00
committed by Space Team
parent f0a1d3e3b1
commit b867fd8c2f
9 changed files with 11 additions and 29 deletions
@@ -1,14 +0,0 @@
FILE fqName:<root> fileName:/catchParameterInTopLevelProperty.kt
PROPERTY name:test visibility:public modality:FINAL [val]
FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Unit visibility:private [final,static]
EXPRESSION_BODY
TRY type=kotlin.Unit
try: BLOCK type=kotlin.Unit origin=null
CATCH parameter=val e: kotlin.Throwable [val] declared in <root>.test
VAR name:e type:kotlin.Throwable [val]
BLOCK type=kotlin.Unit origin=null
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-test> visibility:public modality:FINAL <> () returnType:kotlin.Unit
correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val]
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-test> (): kotlin.Unit declared in <root>'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Unit visibility:private [final,static]' type=kotlin.Unit origin=null
@@ -1,7 +0,0 @@
val test: Unit
field = try { // BLOCK
}
catch (e: Throwable){ // BLOCK
}
get
@@ -1 +1,2 @@
// FIR_IDENTICAL
val test = try { } catch (e : Throwable) { }