Ivan Kylchik
84d4a0609f
[VISUALIZER] Fix typealias rendering in fir
2021-03-19 18:30:22 +03:00
Ivan Kylchik
c94a4e7baf
[VISUALIZER] Fix class literals rendering
2021-03-19 18:30:21 +03:00
Ivan Kylchik
fb654ce09b
[VISUALIZER] Fix extension types rendering in fir
2021-03-19 18:30:20 +03:00
Ivan Kylchik
9e5645777d
[VISUALIZER] Add annotation text for backing field in fir
2021-03-19 18:30:19 +03:00
Ivan Kylchik
813e48ffb4
[VISUALIZER] Replace rendering of class with no name to anonymous
2021-03-19 18:30:18 +03:00
Ivan Kylchik
ca424a94ef
[VISUALIZER] Add local path to local declarations in fir
2021-03-19 18:30:16 +03:00
Ivan Kylchik
607c7b3e82
[VISUALIZER] Add implicit receiver rendering in fir
2021-03-19 18:30:15 +03:00
Ivan Kylchik
0ca0304865
[VISUALIZER] Fix render of null constant in fir
2021-03-19 18:30:14 +03:00
Ivan Kylchik
a497a2fa9b
[VISUALIZER] Forbid to render type of single underscore variable
2021-03-19 18:30:13 +03:00
Ivan Kylchik
48ee4791b6
[VISUALIZER] Fix rendering of enum class and enum entry in fir
2021-03-19 18:30:12 +03:00
Ivan Kylchik
e2a7da25b0
[VISUALIZER] Rewrite fir symbol's rendering
2021-03-19 18:30:10 +03:00
Ivan Kylchik
4259ad2d84
[VISUALIZER] Change result of psi render according to new test data
2021-03-19 18:30:09 +03:00
Ivan Kylchik
3e66d12bef
[FIR] Change some raw-fir test files to make them correct
...
"correct" means that these files can be compiled. This change is
necessary for visualizer. Don't want to ignore these test files,
so they must not produce errors.
2021-03-19 18:30:08 +03:00
Ivan Kylchik
951d607445
[VISUALIZER] Forbid to walk inside type reference children in psi
2021-03-19 18:30:07 +03:00
Ivan Kylchik
cc7d82ab7b
[VISUALIZER] Change rendering of equality operator
2021-03-19 18:30:06 +03:00
Ivan Kylchik
c678ad9eb9
[VISUALIZER] Fix superTypes test
2021-03-19 18:30:05 +03:00
Ivan Kylchik
05efb8c129
[VISUALIZER] Add possibility to render callable reference in fir part
2021-03-19 18:30:04 +03:00
Ivan Kylchik
ce844a9bba
[VISUALIZER] Disable rendering of value arguments in psi part
...
For now instead of arguments will be rendered parameters
2021-03-19 18:30:03 +03:00
Ivan Kylchik
f2cf86a3ae
[VISUALIZER] Fix package rendering
2021-03-19 18:30:02 +03:00
Ivan Kylchik
c4be67b518
[VISUALIZER] Change rendering of constructors in fir part
2021-03-19 18:30:01 +03:00
Ivan Kylchik
945cc36ce3
[VISUALIZER] Add annotation at Array.set method
2021-03-19 18:30:00 +03:00
Ivan Kylchik
ca1b20c7f4
[VISUALIZER] Add some tests to ignore list
2021-03-19 18:29:58 +03:00
Ivan Kylchik
919591909e
Update test data for compiler visualizer
2021-03-19 18:29:56 +03:00
Ivan Kylchik
4ac38e5f29
Rewrite compiler visualizer tests using new test infrastructure
2021-03-19 18:29:55 +03:00
Alexander Udalov
415d52fe54
Deprecate KotlinJvmOptions.useIR
...
Starting from language version 1.5, JVM IR is enabled by default, so
this option has no effect. To rollback to the old JVM backend, the new
option useOldBackend can be used.
#KT-45504 Fixed
2021-03-19 14:57:55 +01:00
Alexander Udalov
ec3799a696
Do not print total bytes written in :core:builtins:serialize
...
To reduce the amount of output on a clean build. Will have effect after
the next bootstrap update.
2021-03-19 14:56:14 +01:00
Victor Petukhov
60f2f85be7
Process captured types with type variable inside properly, in the operations related with the type variables fixation
2021-03-19 16:16:11 +03:00
Victor Petukhov
a2b1aa753b
Substitute captured types with type variables properly
...
^KT-44687 Fixed
2021-03-19 16:16:09 +03:00
Roman Golyshev
76ff106458
FIR: Add collecting top-level scopes of the file
...
It will be useful in the completion when we need to dicide if we
need to import FQN or not
2021-03-19 12:37:42 +03:00
Ilya Goncharov
88abb3d6c9
[JS IR] Fix creating of classes extended from nested one
...
[JS IR] Extract getClassRef method
^KT-44950 fixed
2021-03-18 21:14:00 +03:00
Dmitry Petrov
17da240910
JVM_IR KT-45195 generate non-static annotation members as ACC_ABSTRACT
2021-03-18 19:41:24 +03:00
Steven Schäfer
d0424465b8
JVM IR: Resolve fake overrides when calculating return types (KT-44867)
2021-03-18 16:02:35 +01:00
Roman Artemev
44d03bc727
[Psi2Ir] Fix generation of property references for synthetic java props
...
- Declare it on use-site
- Fix export checker for that case
- Fix KT-45297
2021-03-18 16:50:31 +03:00
Roman Artemev
9632839253
[JVM IR] Add jvm box test for KT-45297
2021-03-18 16:50:27 +03:00
Roman Artemev
0a4f2bc39c
[IR] Add irText test for KT-45297
2021-03-18 16:50:22 +03:00
Mikhail Zarechenskiy
111e54c8c1
Do not generate DefaultImpls for light classes if not needed
...
#KT-41130 In Progress
2021-03-18 16:38:52 +03:00
Dmitry Petrov
ac6232b4ba
JVM_IR KT-36853 patch parents after tailrecPhase
2021-03-18 15:19:24 +03:00
Dmitriy Novozhilov
34f8c7a68b
[TEST] Add ability to register compiler extensions in EnvironmentConfigurator
2021-03-18 14:00:38 +03:00
Dmitriy Novozhilov
fc2d294b6c
[FIR] Fix tower priorities for invoke resolve
...
#KT-45316 Fixed
2021-03-18 10:24:57 +03:00
Alexander Udalov
27174de891
Add JVM target bytecode version 16
...
#KT-45515 Fixed
2021-03-17 21:31:08 +01:00
Andrei Klunnyi
09f9489619
[FIR]: sealed hierarchy processor for IDE
...
From now on sealed declarations get resolved with the help of
FirIdeSealedHierarchyProcessor. This change entails correct IDE side
check for sealed when exhaustiveness.
2021-03-17 19:43:49 +01:00
Dmitry Petrov
7fabc19326
JVM_IR KT-45446 don't erase captured var if it's dead code
2021-03-17 15:37:35 +03:00
Svyatoslav Kuzmich
6bd34db725
[JS IR] Fix kotlin.js.js with complex constant expressions
...
Use IR interpreter to evaluate complex constexprs
2021-03-17 15:12:18 +03:00
Jinseong Jeon
93289aa899
FIR checker: report VAL_REASSIGNMENT_VIA_BACKING_FIELD(_ERROR)
2021-03-17 15:04:44 +03:00
Mikhail Glukhikh
a6d11b8914
FirFunctionParameterChecker: use reportOnWithSuppression
2021-03-17 15:04:44 +03:00
Tianyu Geng
94de193993
FIR: introduce VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION check
...
Besides adding VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION,
we remove here NO_TYPE_FOR_TYPE_PARAMETER since it doesn't exist in FE1.0.
The name also doesn't make much sense.
From the usage it looks like it should have been
VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION instead.
2021-03-17 15:04:43 +03:00
Mark Punzalan
10d16d10d5
Raw FIR: Fix downward propagation of external and inline from
...
property to default accessors for light-tree.
2021-03-17 10:45:26 +01:00
Mark Punzalan
7d31ea3e8f
FIR checker: Add utility functions for FirModifierList.
2021-03-17 10:45:26 +01:00
Mark Punzalan
315047b164
FIR checker: Make FirJvmExternalDeclarationChecker a
...
FirMemberDeclarationChecker.
Set isExternal in status for FirRegularClass. Invoke member declaration
checkers for FirRegularClass.
2021-03-17 10:45:26 +01:00
Mark Punzalan
cef26a043e
FIR checker: Merge FirConstDeclarationChecker with
...
FirConstPropertyChecker.
2021-03-17 10:45:26 +01:00