[FIR] Introduce different synthetic origins for FIR declarations

This is needed to be able to precisely distinguish different synthetic
  declarations (like fields for delegates and functions for data classes)
  in fir2ir
This commit is contained in:
Dmitriy Novozhilov
2023-07-27 15:07:29 +03:00
committed by Space Team
parent 5b7b885dac
commit 69a35970eb
20 changed files with 45 additions and 27 deletions
@@ -1,8 +1,8 @@
D:
[Synthetic]: public open val x: R|kotlin/Int| from Java enhancement scope for /D [id: 0]
[Synthetic]: public open val x: R|kotlin/Int| from Java enhancement scope for /B [id: 1]
[JavaProperty]: public open val x: R|kotlin/Int| from Java enhancement scope for /D [id: 0]
[JavaProperty]: public open val x: R|kotlin/Int| from Java enhancement scope for /B [id: 1]
[Source]: public open val x: R|kotlin/Int| from Use site scope of /A [id: 2]
[Synthetic]: public open val y: R|kotlin/Int| from Java enhancement scope for /D [id: 0]
[JavaProperty]: public open val y: R|kotlin/Int| from Java enhancement scope for /D [id: 0]
[Source]: public open val y: R|kotlin/Int| from Java enhancement scope for /B [id: 1]
[Source]: public open val y: R|kotlin/Int| from Use site scope of /A [id: 1]