[FIR] introduce KtFakeSourceElementKind.ReceiverFromType

^KT-54417
This commit is contained in:
Dmitrii Gridin
2022-10-21 10:29:28 +02:00
committed by Space Team
parent 8cd404c84c
commit 22cfea5058
3 changed files with 11 additions and 0 deletions
@@ -227,6 +227,10 @@ sealed class KtFakeSourceElementKind : KtSourceElementKind() {
// for implicit conversion from int to long with `.toLong` function
// e.g. val x: Long = 1 + 1 becomes val x: Long = (1 + 1).toLong()
object IntToLongConversion : KtFakeSourceElementKind()
// for extension receiver type the corresponding receiver parameter is generated
// with a fake sources which refers to this the type
object ReceiverFromType : KtFakeSourceElementKind()
}
sealed class AbstractKtSourceElement {