Dmitrii Gridin
d5cfea330b
[LL FIR] support parameters resolution
...
Script parameters now can be resolved independently of the script.
But, as parameters are part of the script, their resolve will be called
before the script.
^KT-66276 Fixed
2024-03-07 12:50:59 +00:00
Ivan Kylchik
5fe3fa878e
[Test] Fix LL FIR test data after introducing new CONSTANT_EVALUATION phase
...
#KT-64151
2024-03-06 11:35:41 +00:00
Ivan Kochurkin
69b9bfc3e0
[FIR] Initialize public visibility for class-like declarations at FIR building phase if no modifier is presented
...
Java resolving subsystem requires calculated visibility for correct disambiguation of supertypes.
But visibility remains `Unknown` for Kotlin class-like declarations during supertypes resolving because `STATUS` resolve phase is performed after `SUPER_TYPES` phase.
To fix the problem, the visibility should be initialized to public at the FIR building phase if no modifier is presented.
^KT-64127 Fixed
2024-01-04 16:17:32 +00:00
Ilya Chernikov
db804b7f93
K2 Scripting: fix CFG processing related testdata in LL
2023-12-12 09:58:19 +00:00
Ilya Chernikov
a69eaa0ea3
K2 Scripting: fix testdata changed after script statements wrapping
2023-12-12 09:58:19 +00:00
Dmitrii Gridin
ba7c341338
[LL FIR] annotation calculator for scripts should process only script inself
...
We shouldn't calculate annotations inside unrelated declarations without lock
^KT-63042
^KT-63282
2023-11-08 23:22:19 +00:00
Dmitrii Gridin
3817f37011
[FIR] rename ANNOTATIONS_ARGUMENTS_MAPPING phase to ANNOTATION_ARGUMENTS
...
^KT-62679
2023-10-19 14:34:35 +00:00
Dmitrii Gridin
a86bae2c32
[FIR] drop ARGUMENTS_OF_ANNOTATIONS phase
...
^KT-62679 Fixed
2023-10-19 14:34:35 +00:00
Dmitrii Gridin
f124ba627d
[FIR] implicit type: avoid redundant property and function transformations
...
This is a contract violation – we can touch only bodies during this phase
^KT-56551
2023-10-06 14:13:37 +00:00
Dmitrii Gridin
12dc6b1ebc
[FIR] FirRenderer: render name for scripts
...
A script name is important information, so it is better to render it.
This also will fix the inconsistency with redundant space after 'SCRIPT:'.
2023-09-19 14:03:29 +00:00
Dmitrii Gridin
33e6a85a2d
[LL FIR] rename testdata to testData to avoid copyright generation
...
We exclude testData pattern from copyright scope
2023-09-18 21:12:45 +00:00