PSI2IR: For implicit function return, use expression's end offset as start offset of the IrReturn to generarate correct line number.

This commit is contained in:
Jiaxiang Chen
2019-11-18 13:30:07 -08:00
committed by Ilmir Usmanov
parent e49431a12c
commit 0441e484a6
6 changed files with 11 additions and 14 deletions
@@ -24,7 +24,7 @@
@2:0..8:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@10:0..18 FUN name:foo visibility:public modality:FINAL <> () returnType:test.Host
@10:12..18 BLOCK_BODY
@10:12..18 RETURN type=kotlin.Nothing from='public final fun foo (): test.Host declared in test'
@10:18..18 RETURN type=kotlin.Nothing from='public final fun foo (): test.Host declared in test'
@10:12..18 CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in test.Host' type=test.Host origin=null
@12:0..14:1 FUN name:test2 visibility:public modality:FINAL <> ($receiver:test.Host) returnType:kotlin.Unit
@12:4..8 VALUE_PARAMETER name:<this> type:test.Host