Dmitriy Novozhilov
696f089b3e
Make DescriptorVisibility delegate to Visibility
2020-09-04 11:42:50 +03:00
Dmitriy Novozhilov
a05d6da43b
Move descriptor-independent Visibilities to common modules
2020-09-04 11:42:50 +03:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Dmitriy Novozhilov
2bcd8ee07f
Get rid of Visibility.effectiveVisibility member
2020-09-04 11:07:42 +03:00
Dmitriy Novozhilov
7d9b7df3b4
Cleanup code in EffectiveVisibility.kt and extract descriptors related part to separate file
2020-09-04 11:07:42 +03:00
Dmitriy Novozhilov
6346b1b2ab
Use type markers instead of class descriptors in effective visibility
2020-09-04 11:07:42 +03:00
Dmitriy Novozhilov
64ec3fc42b
Move BuiltinSpecialProperties and JvmAbi to :core:compiler.common.jvm
2020-09-04 11:07:41 +03:00
Dmitriy Novozhilov
10fd164b77
Extract FE 1.0 dependent part from JavaToKotlinClassMap
...
Also move JavaToKotlinClassMap to :core:compiler.common.jvm
2020-09-04 11:07:41 +03:00
Dmitriy Novozhilov
136435bcc2
Move JvmPrimitiveType to :core:compiler.common
2020-09-04 11:07:41 +03:00
Dmitriy Novozhilov
4d5f28d5c0
Move FunctionInvokeDescriptor.BIG_ARITY to :core:compiler.common
2020-09-04 11:07:41 +03:00
Dmitriy Novozhilov
bf4bf30b4a
Move CompanionObjectMapping to :core:compiler.common
2020-09-04 11:07:40 +03:00
Dmitriy Novozhilov
0e04af463d
Move JvmTypeSpecificityComparator to :compiler:resolution.common.jvm
2020-09-04 11:07:40 +03:00
Dmitriy Novozhilov
564d382b9d
Introduce new modules for common jvm related parts of compiler
2020-09-04 11:07:40 +03:00
Dmitry Petrov
dd016b759e
JVM_IR: write raw types as raw in JVM generic signatures
2020-09-04 10:21:49 +03:00
Dmitry Petrov
475522f938
Represent raw types in IR using a special type annotation
2020-09-04 10:21:48 +03:00
Dmitry Petrov
714ab7c37f
Handle java raw types in IR
...
Raw type Q is represented as a flexible type
Q<B1, ... Bn> .. Q<*, ... *>
where Bi is a representative upper bound of the corresponding ith type
parameter of Q.
When mapping generic signature, JVM takes type arguments of lower bound
(which is 'Q<B1, ..., Bn>').
There is still some difference in how JVM and JVM_IR handle raw type in
signature. It requires additional investigation.
2020-09-04 10:21:48 +03:00
Toshiaki Kameyama
8420c0b7c7
Add "Redundant nullable return type" inspection
...
^KT-19321 Fixed
2020-09-04 09:07:22 +02:00
Toshiaki Kameyama
d703284d01
Naming convention inspection: don't report for factory functions
...
#KT-20438 Fixed
2020-09-03 22:25:06 +02:00
Vladimir Dolzhenko
4f4db68a61
I18N fixes after merging convert initialized val to non-null type inspection
...
Relates to ^KT-35757
2020-09-03 22:01:11 +02:00
Vladimir Dolzhenko
eb3bde1538
Amend test data after adding Convert assignment to assignment expression intention
...
Relates to #KT-22420
2020-09-03 21:38:46 +02:00
Dmitriy Dolovov
8a7f33f044
[Commonizer] Fix internal error when TAs have different expanded classes
...
^KT-41643
2020-09-04 01:19:41 +07:00
Vladimir Dolzhenko
d4ef85f6c2
Amend test data after adding Convert assignment to assignment expression intention
...
Relates to #KT-22420
2020-09-03 18:04:55 +02:00
Mark Punzalan
16ab11289c
[JS_IR] Enable RangeContainsLowering optimizations.
2020-09-03 18:42:35 +03:00
Ilya Goncharov
88755a8d20
[Gradle, JS] Use npm project dir as executable
...
^KT-40812 fixed
2020-09-03 18:31:56 +03:00
Toshiaki Kameyama
6db0785615
Wrap with let: apply to unsafe qualified expression
...
#KT-18125 Fixed
2020-09-03 17:04:06 +02:00
kvirolainen
18fbf5729d
Inspection: convert initialized val to non-null type
...
^KT-35757 Fixed
2020-09-03 16:30:28 +02:00
Pavel Kirpichenkov
8b28e54584
[FIR-IDE] Update tests
2020-09-03 16:44:57 +03:00
Pavel Kirpichenkov
177fcefa68
[FIR-IDE] Minor: refactor completion contributor
2020-09-03 16:44:41 +03:00
Enteerman
c3aeaa9052
Inspection: Simplify Nested forEach/onEach in also/apply to onEach
...
^KT-40283 Fixed
2020-09-03 15:29:32 +02:00
Victor Petukhov
85d99612a2
Don't create inconsistent types (with contradictive use site and declaration site variances) for star projections with corresponding contravariant type parameters during substitution
...
^KT-41388 Fixed
2020-09-03 16:24:28 +03:00
Dereck Bridie
94970e2d1e
Intention to replace a = b with b.also { a = it }
...
^KT-22420 Fixed
2020-09-03 15:11:36 +02:00
Vladimir Dolzhenko
e387d56d93
Drop redundant synchronized from LibraryEffectiveKindProviderImpl
...
effectiveKindMap is SoftFactoryMap that wraps CHM
^KT-41634 Fixed
2020-09-03 12:25:38 +00:00
Enterman
d09b20f11d
Inspection to replace !string.isBlank() with string.isNotBlank()
...
#KT-40769 Fixed
2020-09-03 14:20:35 +02:00
vldf
f9a2d01d57
[FIR] Add UselessCallOnNotNullChecker
2020-09-03 14:28:57 +03:00
Mikhail Glukhikh
548adc29d0
[FIR] Enter loops in resolve using independent context
2020-09-03 14:24:31 +03:00
Mikhail Glukhikh
a7da0d5080
[FIR] Approximate exotic return types for public declarations
2020-09-03 14:24:31 +03:00
Jinseong Jeon
bf918e6184
FIR: hide local types if needed
2020-09-03 14:24:31 +03:00
Mikhail Glukhikh
9e38e6d051
[FIR2IR] Intercept exceptions in convertToIrCall to provide more info
2020-09-03 14:24:31 +03:00
Mikhail Glukhikh
23e83e8933
FirClassSubstitutionScope: don't recreate type parameters for unbound f/o
2020-09-03 14:24:30 +03:00
Jinseong Jeon
e8157a5488
FIR: introduce & use various comparators to sort members while de/serialization
...
#KT-41018 fixed
2020-09-03 13:55:52 +03:00
cketti
91c021c699
Add support for mixed named arguments to parameter info popup
...
Don't display parameter info in square brackets if the caller doesn't
have to use a named argument. This makes the parameter info popup
reflect the new capability introduced with
MixedNamedArgumentsInTheirOwnPosition.
^KT-41645 Fixed
2020-09-03 12:30:27 +02:00
n-p-s
af6e744b65
Allow generate toString(), equals(), and hashCode() to include non-default accessors
...
^KT-15262 Fixed
2020-09-03 12:12:33 +02:00
KotlinIsland
3bf18343f5
Build: Upgrade gradle to 6.6.1
...
[We recommend that you use Gradle 6.6.1 over the initial release of Gradle 6.6](https://github.com/gradle/gradle/releases/tag/v6.6.1 )
2020-09-03 10:50:22 +02:00
Roman Artemev
685b74769d
[JVM IR] Fix lineNumber passing into CoroutineTransformer.
...
- Get it from `IrFile` & `IrElement.startOffset` instead of descriptor
- Unmute stepping tests
2020-09-03 11:37:24 +03:00
Alexander Udalov
5aca8ebda8
Minor, add test case on metadata of lambdas in constructors
...
KT-41465
2020-09-02 20:04:05 +02:00
pyos
6b65a2ea7d
JVM_IR: move classes out of lambdas inlined into initializers
...
Fixes KT-41465
2020-09-02 20:03:38 +02:00
Florian Kistner
9775a2148a
203: Fix compilation
2020-09-02 18:48:57 +02:00
Pavel Kirpichenkov
9d12df28c1
[FIR-IDE] Add idea-fir test runtime dep for fir plugin only
...
Leads to duplicated bundled resources annotation templates otherwise.
2020-09-02 19:15:07 +03:00
Pavel Kirpichenkov
26982d1b48
[FIR-IDE] Use delegating KtScope for type param scope
2020-09-02 19:15:06 +03:00
Pavel Kirpichenkov
0d3f1af6e4
Fix imports after rebase
2020-09-02 19:15:06 +03:00