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
Dmitriy Novozhilov
1fac1fc5d3
[FIR] Add proper rendering of FirJavaTypeRef
2021-03-02 19:11:19 +03:00
Dmitriy Novozhilov
b31b293eef
[FIR] Update testdata according to KT-45223
2021-03-02 19:11:17 +03:00
Dmitriy Novozhilov
af79265f42
[FIR] Fix creating overrides for functions with name same as renamed in JVM builtins
2021-03-02 19:11:15 +03:00
Dmitriy Novozhilov
523d37b0f5
[Test] Implement handler which dumps overrides tree of specified classes
2021-03-02 19:11:14 +03:00
Dmitriy Novozhilov
4299794de2
Move SmartPrinter to :core:compiler.common
2021-03-02 19:11:10 +03:00
Yahor Berdnikau
24ba581910
Replace, where possible in tests, jcenter() with mavenCentral().
...
In few places I have to leave bintray repository due to not all kotlin
dependencies where migrated to maven central.
^KT-44949 In progress
2021-03-02 17:34:23 +03:00
Yaroslav Chernyshev
7d766add4b
Add lambda configurable languageSettings function in KotlinSourceSet
...
Function with Groovy Closure is already exists, it provides DSL parity
#KT-44834 Fixed
2021-03-02 16:32:06 +03:00
Tianyu Geng
17617ffd3f
IDE FIR: fix resolving vararg parameter type
...
For a vararg parameter type, there corresponding FIR element has a fake
source of kind ArrayTypeFromVarargParameter. As a result,
`getOrBuildFir` returns the whole `FirValueParameter` for the parameter
type reference. Therefore, we need some special handling for this case
in order to resolve the proper `KtSymbol`.
2021-03-02 12:46:55 +01:00
Anton Bannykh
87f3ca3f36
IR: make isExternal immutable
2021-03-02 14:30:18 +03:00
Anton Bannykh
b0e0e62c0b
Propagate isExternal flag in Psi2Ir and deserializer
2021-03-02 14:30:16 +03:00
Anton Bannykh
027f656790
JS IR: make PIR Carriers immutable
2021-03-02 14:30:15 +03:00
Vasily Levchenko
93fb7597e9
[build] fix issue with bundle build
2021-03-02 10:55:41 +01:00
Yaroslav Chernyshev
634c8522a1
Fix jvmTarget default divergence between KGP & IDE after change to 1.8
2021-03-02 11:51:11 +03:00
Dmitriy Dolovov
43d9c6cc90
[Commonizer] Reworked functions for making nullable CIR types
2021-03-02 11:37:25 +03:00
Ilya Kirillov
f2db93a9d2
FIR IDE: add test cases for file structure tests
2021-03-02 09:16:06 +01:00
Ilya Kirillov
ded24c708d
FIR IDE: run incremental analysis in file structure tests multiple times
2021-03-02 09:16:06 +01:00
Ilya Kirillov
48761648d5
FIR IDE: correctly copy containingClassAttr when reanalysing declaration
2021-03-02 09:16:05 +01:00
Ilya Kirillov
70c98d34d2
FIR IDE: add test which check that every declaration is visited single time during diagnostic collection
2021-03-02 09:16:05 +01:00
Ilya Kirillov
0b921ed9d8
FIR IDE: fix collecting diagnostics multiple times for the same declaration
...
^KT-45199 fixed
2021-03-02 09:16:05 +01:00
Ilya Kirillov
4acca2fa16
FIR IDE: refactor DiagnosticsCollector.getDiagnosticsFor for easier debugging
2021-03-02 09:16:05 +01:00
Ilya Kirillov
9cca19d503
FIR IDE: do not consider OOBM in non-physical file as OOBM
2021-03-02 09:16:05 +01:00
Ilya Kirillov
e2fc20e9a1
FIR IDE: do not store psi inside HLQuickFix
...
Otherwise we can operate on invalidate psi
relates to ^KT-45199
2021-03-02 09:16:03 +01:00
Abduqodiri Qurbonzoda
2266cd4631
Commonize Char.titlecaseChar() and Char.titlecase() #KT-44369
2021-03-02 01:11:45 +03:00
Abduqodiri Qurbonzoda
0c9205423f
Add String case conversion tests
2021-03-02 01:11:42 +03:00
Abduqodiri Qurbonzoda
49ce776bf4
Add Char case conversion tests
2021-03-02 01:11:39 +03:00
Abduqodiri Qurbonzoda
fc5e4c20c1
Implement String case conversion generators #KT-45213
2021-03-02 01:11:38 +03:00
Abduqodiri Qurbonzoda
1066de1be6
Implement Char one-to-one and one-to-many case conversion generators #KT-45213
2021-03-02 01:11:36 +03:00
Dmitriy Dolovov
7ad35b2f49
[Commonizer] Change CIR type calculation procedure
...
- By default, all CIR types are created as abbreviated types
(if such information is available in descriptors).
- When necessary, CIR type can be "unabbreviated" to remove any
abbreviations from it. This can be done via a separate function
in CirTypeFactory: unabbreviate().
2021-03-01 23:17:16 +03:00
Alexander Udalov
3f16f84d0d
Fix warnings in buildSrc
2021-03-01 19:47:24 +01:00