Alexander Udalov
f332192de8
IR: remove SourceManager, make PsiSourceManager a singleton
2021-03-05 20:46:33 +01:00
Mikhael Bogdanov
8ff0b1e243
Reports warning on super calls in public-api inline functions
2021-03-05 18:45:07 +00:00
Alexander Udalov
027df41740
Add test which runs Kotlin compiler in parallel
...
This will be useful in diagnosing issues like KT-45007 in the future.
#KT-45007
2021-03-05 17:58:42 +01:00
Alexander Udalov
e7e17cdaa9
Revert "Fix KotlinCoreEnvironment projectCount disposable"
...
This reverts commit 99a6bdeec7 .
#KT-45007 Fixed
2021-03-05 17:40:39 +01:00
Vladimir Dolzhenko
36ff952a0f
Ignore when failed to get file text
...
Relates to #KTIJ-706
2021-03-05 17:12:56 +01:00
Andrei Klunnyi
a0b901b23a
Revert "[FIR]: sealed hierarchy processor for IDE"
...
This reverts commit e6ccdff2
2021-03-05 16:37:47 +01:00
Igor Yakovlev
b744f41c0d
[ULC] Fix annotations invalid parents
...
Fixed #KT-45287
2021-03-05 14:33:10 +01:00
Igor Yakovlev
179cf303da
[ULC] Fix annotations with no site for ctor
...
Fixed #KT-45291
2021-03-05 14:33:10 +01:00
Roman Artemev
9bdfbc948c
[KLIB] Support assignable value parameters in deserializer
...
- fix KT-44945
2021-03-05 13:47:07 +03:00
Andrei Klunnyi
e6ccdff2f7
[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-05 10:20:19 +00:00
Dmitriy Novozhilov
aa829c2321
[FIR2IR] Fix using default values of annotation arguments
2021-03-05 13:00:12 +03:00
Dmitriy Novozhilov
ca26c193ae
Make all hierarchies of JavaAnnotationArgument sealed
2021-03-05 13:00:12 +03:00
Dmitriy Novozhilov
1f6ce874a1
Don't fail on unsupported default values of java annotations
2021-03-05 13:00:12 +03:00
Dmitriy Novozhilov
745aa620d0
Reformat annotationArgumentsImpl.kt
2021-03-05 13:00:11 +03:00
Dmitriy Novozhilov
bd7689d381
[FIR] Properly compute default arguments of java annotations
2021-03-05 13:00:11 +03:00
Dmitriy Novozhilov
8324f499cd
[FIR] Fix serializing annotation metadata on setters value parameters
2021-03-05 13:00:11 +03:00
Jinseong Jeon
8368812432
Minor cleanup: avoid vague util names
2021-03-05 10:06:22 +03:00
Jinseong Jeon
8b24f4b5c6
Minor cleanup: place modifier strategies close to each other
2021-03-05 10:06:22 +03:00
Jinseong Jeon
1ba943eb4a
Minor cleanup: prefer actual body with return statement
2021-03-05 10:06:22 +03:00
scaventz
28452fc38e
Kotlinc: catch FileNotFoundException caused by problematic destination.
2021-03-04 11:25:35 -08:00
Alexander Likhachev
70d434e992
Update tests after compiler properties rework
...
#KT-43605 Fixed
2021-03-04 19:36:18 +03:00
Alexander Likhachev
3537c699b5
[Gradle] Read system properties at configuration time using Gradle providers
...
The change is a step to fully support Gradle configuration cache.
Relates to #KT-43605
Relates to #KT-44611
2021-03-04 19:36:11 +03:00
Jinseong Jeon
9badbfc30d
FIR checker: simplify isExpect|isExternal checks
...
Those resolve information are different from modality/visibility, which
could have conflicting modifiers.
2021-03-04 17:56:30 +03:00
Jinseong Jeon
774ba58062
FIR checker: pluralize top-level/member function/property checkers
2021-03-04 17:56:30 +03:00
Jinseong Jeon
d348e58183
FIR: rename util to retrieve primary constructor
2021-03-04 17:56:30 +03:00
Jinseong Jeon
1090eca086
RAW FIR: record property accessors' own modality properly
2021-03-04 17:56:30 +03:00
Jinseong Jeon
e009b71f88
FIR checker: report uninitialized member/extension properties
2021-03-04 17:56:29 +03:00
Jinseong Jeon
e8028e7825
FIR checker: report nullable/non-class LHS of class literals
2021-03-04 17:09:52 +03:00
Dmitriy Novozhilov
a6d1d47918
[FIR] Fix clearing info about DF variable after reassignment
2021-03-04 17:09:17 +03:00
Dmitriy Novozhilov
f8adce8b96
[FIR] Cleanup data flow analysis of safe calls
2021-03-04 17:09:17 +03:00
Mikhail Glukhikh
48001dbbb2
FirConstPropertyChecker: add some TODOs
2021-03-04 16:13:50 +03:00
Mikhail Glukhikh
6470b713d5
FIR: set isConst on primary constructor properties
2021-03-04 16:13:50 +03:00
Mikhail Glukhikh
d7a6fc80b0
FIR: don't report CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT on variables
2021-03-04 16:13:50 +03:00
Br0mm
dd3bc1a964
FIR: Introduce CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT diagnostic
2021-03-04 16:13:50 +03:00
Mikhail Zarechenskiy
6c2eaf2df8
Increase stub versions for major release
...
^KT-41056 Fixed
2021-03-04 16:03:19 +03:00
Tianyu Geng
89ce629352
FIR: report VARARG_OUTSIDE_PARENTHESES
2021-03-03 20:23:59 +03:00
Mikhail Glukhikh
b7cb39fdd1
Drop/inline unused members of FirTowerDataContextsForClassParts
2021-03-03 17:15:26 +03:00
Mikhail Glukhikh
b2b502338a
FIR: move lambda / reference specific contexts to general context parts
2021-03-03 17:15:26 +03:00
Mikhail Glukhikh
eca1256d7e
FIR: refactor property & initializer resolve
2021-03-03 17:15:26 +03:00
Mikhail Glukhikh
130e3552ea
Unite different tower contexts in FirTowerDataContextsForClassParts
2021-03-03 17:15:26 +03:00
Vladimir Dolzhenko
72322646cc
Temporary disable assertion
...
Relates to #KT-37702
2021-03-03 14:15:50 +01:00
Jinseong Jeon
5923cbd76f
FIR: remove unnecessary override in PreliminaryLoopVisitor
2021-03-03 12:27:12 +03:00
Jinseong Jeon
f1fa290d49
FIR checker: report val reassignment
2021-03-03 12:27:11 +03:00
Andrey Zinovyev
b128577508
[KAPT] Some optimizations for stubs generation
...
* Add index to resolve compiled class by name
* Disable full property resolution
2021-03-03 12:05:49 +03:00
justin.wei
34274dd032
Support relocatable cache for InputCache
2021-03-03 11:25:58 +03:00
Mikhail Glukhikh
45ba035431
Drop obsolete TODO during FIR building
2021-03-03 08:55:48 +03:00
Mads Ager
8e9dfc23b6
FIR: Take targeted annotations into account for metadata
...
Getter/setter targeted annotations were not correctly reflected
in the kotlin metadata which made them not work with
kotlin-reflect.
2021-03-03 08:48:28 +03:00
Shagen Ogandzhanian
2a170652c5
Don't create IIFE for varags at all when it possible
...
^KT-40689 fixed
2021-03-02 22:13:32 +03:00
Shagen Ogandzhanian
cac57e4178
Don't create externalVarargReceiverTmp when there's no need to create it
...
^KT-40689 fixed
2021-03-02 22:13:31 +03:00
Shagen Ogandzhanian
6255f2bd77
Simplify JsInvocation in case we not it's Array
...
^KT-40689 fixed
2021-03-02 22:13:30 +03:00