Pavel Kunyavskiy
e6f4d6e6fa
[Tests] Use stable order for ir/kotlinLike dumps
...
^KT-65406
2024-02-16 10:19:38 +00:00
Dmitriy Dolovov
16d1e85932
IR text tests: Stable blank lines between declarations in class
...
Rework rendering of kt-like dump and signatures dump in order to avoid
unstable blank line between declarations of the same level:
1. No blank line for the first declaration inside the member scope of
the class.
2. Always a single blank line between each two subsequent declarations
inside the member scope of the class.
2023-11-30 08:32:35 +00:00
Vladimir Sukharev
9b9ddb760a
[FIR2IR] Coerce last operator in a loop to Unit
...
One of many fixes for https://youtrack.jetbrains.com/issue/KT-59781/K2-investigate-implicit-cast-generation-in-fir2ir-vs-psi2ir
Merge-request: KT-MR-12629
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-19 09:53:46 +00:00
Vladimir Sukharev
bae8b283c7
[IR] Normalize temp var names in Kotlin-like dump
...
^KT-61983 Fixed
2023-10-11 07:49:35 +00:00
Vladimir Sukharev
9a2eff6487
[FIR2IR] Don't replace while loop and when branch body blocks with single expression. Skip some empty blocks.
...
https://youtrack.jetbrains.com/issue/KT-60264/K2-while-loop-body-block-sometimes-replaced-with-single-expression
Merge-request: KT-MR-12035
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-09-18 15:27:19 +00:00
Sergej Jaskiewicz
89ff7bd0db
[IR] Add body printing strategy to Kotlin-like dumper
2023-05-04 14:11:19 +00:00
Ivan Kochurkin
b4fada82ae
[FIR2IR] Fix conversion of loops with withIndex
2021-10-25 21:21:42 +03:00
Dmitriy Novozhilov
b454fcc1e0
[FIR] Save IR dumps to .ir.txt files instead of .txt in tests
...
This is needed to avoid clashes between different dumps from different
handlers
2021-10-12 17:26:36 +03:00
Dmitriy Novozhilov
d0a148074f
[FIR2IR] Fix generating body for for-loop
2021-03-30 12:28:15 +03:00
Zalim Bashorov
c68040753d
[IR] dumpKotlinLike: add testdata for FIR tests
2020-11-26 00:15:13 +03:00