FIR2IR: set CATCH_PARAMETER origin for catch parameters
This commit is contained in:
committed by
Space Team
parent
f0a1d3e3b1
commit
b867fd8c2f
-14
@@ -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
|
||||
-7
@@ -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) { }
|
||||
Reference in New Issue
Block a user