Commit Graph

80062 Commits

Author SHA1 Message Date
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
Vladimir Dolzhenko cb92474af9 Use highlight visitor instead of custom general like highlighting pass
#KTIJ-1760 Fixed
#KT-45254 Fixed
2021-03-04 07:11:58 +00:00
KotlinIsland 5e173c9f83 Minor: remove redundant suppression (#3812)
The suppression is not needed after KT-12448 has been fixed.
2021-03-04 08:18:35 +03:00
Vyacheslav Gerasimov bf62e52998 Build: Remove allowUntrustedServer = true from build scan config 2021-03-03 23:49:22 +03:00
Sergey Shanshin bf6dda2d99 Lazy delegate for serializer in objects, sealed and abstract classes
Fixes Kotlin/kotlinx.serialization#585
2021-03-03 21:41:37 +03:00
Tianyu Geng 89ce629352 FIR: report VARARG_OUTSIDE_PARENTHESES 2021-03-03 20:23:59 +03:00
Vasily Levchenko 20aef57677 [performance] resolve issue with movement of kotlinx-metadata-klib and some bintray clean up 2021-03-03 14:53:19 +00: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
Svyatoslav Scherbina 9f77c68f17 Remove bintray repositories from kotlin-native build 2021-03-03 09:38:45 +00:00
Svyatoslav Scherbina 95584f90c3 Remove bintray repositories from kotlin-native/samples 2021-03-03 09:33:04 +00: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
Ivan Gavrilovic 08446e2371 KT-45168: Avoid generating stubs for generated Kotlin sources
Filter out Kotlin sources coming from KAPT-generated dirs.
Some annotation processors e.g Moshi, generate Kotlin sources,
and when generating stubs in non-incremental runs, stub generation
must ignore those sources. This fixes #KT-45168.

Test: Kapt3IT
2021-03-03 11:35:29 +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
Shagen Ogandzhanian e98413740b Pass scope to the call of iifeFun only when it make sense
^KT-40689 fixed
2021-03-02 22:13:29 +03:00
Shagen Ogandzhanian 1dbe7d12a2 Simplify concatElements resolution for size=0 and size=1 cases
^KT-40689 fixed
2021-03-02 22:13:28 +03:00
Shagen Ogandzhanian bcfc0c21b1 Don't add to the concatenation chain empty arraysForConcat at all
^KT-40689 fixed
2021-03-02 22:13:26 +03:00
Shagen Ogandzhanian d71fa4831d Filter out empty arrays before concatentating
^KT-40689 fixed
2021-03-02 22:13:25 +03:00
Shagen Ogandzhanian 31f5bcfaef Minor cosmetic readability fixes in VarargLowering
^KT-40689 fixed
2021-03-02 22:13:24 +03:00
Shagen Ogandzhanian c996161db0 Unroll any constructor call if argument is JsArrayLiteral
^KT-40689 fixed
2021-03-02 22:13:23 +03:00
Shagen Ogandzhanian 997d23eb43 Simplify signatures for arrays in argumentsWithVarargAsSingleArray
^KT-40689 fixed
2021-03-02 22:13:22 +03:00
Abduqodiri Qurbonzoda 85fe636d60 Commonize Char.titlecaseChar() and Char.titlecase() #KT-44369
(cherry picked from commit 7b991613bb577a58235519b76ebec8b33270f783)
2021-03-02 17:11:25 +00:00
Abduqodiri Qurbonzoda a1be20d359 Add String case conversion tests
(cherry picked from commit 103499280c40767298eabd534d421d6e3c695c1e)
2021-03-02 17:11:24 +00:00
Abduqodiri Qurbonzoda 9592422b28 Add Char case conversion tests
(cherry picked from commit 6e28726c31d41a664e9e3d31c7370629d8b279a2)
2021-03-02 17:11:24 +00:00
Abduqodiri Qurbonzoda 63897b5aca Update Unicode version in Char and String case conversion functions #KT-45213
(cherry picked from commit 25b0dac947cb55f842b8e503351f4ebd2064628c)
2021-03-02 17:11:23 +00:00
Alexander Shabalin 27e4b21020 Extract object traversals (#4724)
(cherry picked from commit c3131ea2f51c31881ea068f28035f4d015daf609)
2021-03-02 17:11:22 +00:00
Alexander Shabalin 248e340cd9 Extract finalizer hooks (#4723)
(cherry picked from commit 31aa3521925a22f077acb723315aabb0a7274121)
2021-03-02 17:11:21 +00:00
SvyatoslavScherbina 7bfcf815ba Add missing DisposeStablePointer calls to produce_dynamic test
(cherry picked from commit 65109f68622ca6371511d7d36167197fa7f9003c)
2021-03-02 17:11:21 +00:00
Igor Chevdar 10e79bff8b [IR] Fixed bug with wrong init order of a enum's entries
This fixes https://youtrack.jetbrains.com/issue/KT-38540

(cherry picked from commit d031526a6e1a618597898dd6beadb04eed74b478)
2021-03-02 17:11:20 +00:00
Igor Chevdar 31835f1921 [IR] Reworked adapted references building + test
As a side effect, this fixes https://youtrack.jetbrains.com/issue/KT-43887

(cherry picked from commit 387c09e7aed7666f5a178b2ac342fb17ed3cdda3)
2021-03-02 17:11:19 +00:00
Dmitriy Dolovov 3c5e3d8d50 1.4.31 changelog
(cherry picked from commit a9a9a0b05df2016d84c8fad898633e60d238bf31)
2021-03-02 17:11:18 +00:00
Dmitriy Novozhilov d45709993e [FIR] Support reading annotations of properties from interfaces in different jvm default modes 2021-03-02 19:11:28 +03:00
Dmitriy Novozhilov 714c2a8f93 [FIR] Bind return expression to function symbol instead of function itself 2021-03-02 19:11:27 +03:00
Dmitriy Novozhilov 245bc7c8e2 [FIR2IR] Fix interpreting constants from const properties from other module 2021-03-02 19:11:26 +03:00
Dmitriy Novozhilov a7e6667648 [FIR] Properly deserialize annotations of properties in interfaces 2021-03-02 19:11:24 +03:00
Dmitriy Novozhilov c6f56b9809 [Test] Add IrTextDumpHandler and BytecodeListingHandler to IR BlackBox tests 2021-03-02 19:11:22 +03:00
Dmitriy Novozhilov da0fd7cc15 [FIR2IR] Approximate non-denotable types when converting ConeType to IrType 2021-03-02 19:11:21 +03:00
Dmitriy Novozhilov c271f953d7 [FIR] Introduce ConeTypeApproximator 2021-03-02 19:11:20 +03:00