LepilkinaElena
39bdc1cc2c
Change short form of flag name to full one for cinterop tool ( #2117 )
2019-02-20 15:14:08 +03:00
Alexander Udalov
946acd2416
Minor, ignore test for JVM_IR
...
It started to fail with AssertionError in inlineOnly.kt after
d267f1e875 because "$annotations" methods have annotations from the
corresponding property (which can include InlineOnly), but are never
inline. The test will be unmuted as soon as we stop using wrapped
descriptors in the IR backend to determine access flags which should be
generated on a declaration in the bytecode
2019-02-20 10:56:14 +01:00
Ilya Matveev
588236391e
Build: Fix Kotlin/Native composite build
2019-02-20 12:14:17 +03:00
Igor Chevdar
1d0fdd7976
[IR] Some fixes to wrapped descriptors
2019-02-20 10:39:30 +05:00
Yaroslav Russkih
9ac52fad17
Use https everywhere - documentation and samples
2019-02-19 21:35:36 +01:00
Yaroslav Russkih
028a311949
Use https everywhere - tests and test data
2019-02-19 21:35:36 +01:00
Yaroslav Russkih
7135f1972a
Use https everywhere - production code
2019-02-19 21:35:36 +01:00
Vyacheslav Gerasimov
7d5158c439
Build: Fix internal api usage in DistModelBuilder
...
MapFileTree interface changed in gradle 5.1
2019-02-19 20:06:24 +03:00
Vyacheslav Gerasimov
f8266a5109
Build: Update gradle version to 5.1
2019-02-19 20:06:24 +03:00
Alexander Udalov
d267f1e875
JVM IR: generate synthetic $annotations methods for properties
2019-02-19 17:25:47 +01:00
Alexander Udalov
c92c50aa98
JVM IR: generate JVM signatures of companion object properties
2019-02-19 16:37:47 +01:00
Alexander Udalov
c357967c2c
JVM IR: generate Kotlin metadata
...
Introduce MetadataSource as a way to store the original descriptor for
any element (before any lowerings) and maintain it until the end of the
codegen where it's used in generating the metadata. Note that JVM
signatures written to the metadata are formed from the _resulting_
generated elements, not by mapping the original descriptors.
Some corner cases are not supported yet, namely properties declared in
companion objects, synthetic methods for property annotations,
JvmPackageName, etc.
#KT-29119 Fixed
2019-02-19 16:37:47 +01:00
Alexander Udalov
3d1858a8c5
Refactor and rename CodegenUtil.getDeclarationsToGenerate
...
Move logic regarding expect classes to the only relevant call site at
PackageCodegenImpl, and return the list of members to remove code
duplication at remaining call sites
2019-02-19 16:37:46 +01:00
Alexander Udalov
4487c7a988
JVM IR: rename private fields for properties with same name
...
This is needed to get rid of the code that appends "$companion" to
properties moved from companion, because it caused inconsistencies in
the ABI and in JVM signatures stored in the metadata
2019-02-19 16:37:46 +01:00
Nikolay Krasko
b4571fd548
Minor: cleanup tests in org.jetbrains.kotlin.idea.navigation
2019-02-19 18:27:50 +03:00
Toshiaki Kameyama
80e1fc2ace
Navigation to implementation / overriding method: do not show method of inline class twice
...
#KT-28661 Fixed
#KT-26924 Fixed
2019-02-19 18:27:50 +03:00
Ilmir Usmanov
aa9ce7b2e9
Minor. Update test data
2019-02-19 18:09:23 +03:00
Mads Ager
057bdb3954
Generate better code for branches based on comparisons.
...
For comparison intrinsics and for instanceof checks, make
it possible to get the the stack value produced and branch
on that directly instead of materializing a boolean to
branch on from it.
That reduces code such as
```
IF_CMPEQ L1
CONST_0
GOTO L2
L1: CONST_1
L2: IFEQ L3
```
to just one IF_CMP instruction.
2019-02-19 15:46:52 +01:00
Leonid Startsev
7d2c59fb70
Fix missing optionality of property when generating descriptor in Native
2019-02-19 15:52:04 +03:00
Leonid Startsev
8b16801f0d
Insert correct offsets in a lot of places in IR
...
Use correct type arguments when invoking a generic functions
Fix missing parent in initializer
2019-02-19 15:52:04 +03:00
Leonid Startsev
66272bfa74
Fix impossibility to make @Optional field in a class hierarchy on JS
2019-02-19 15:52:04 +03:00
Leonid Startsev
18667a5a34
Add validator for unique serial names
2019-02-19 15:52:04 +03:00
Leonid Startsev
36e1d6668b
Make write$Self a static function
2019-02-19 15:52:04 +03:00
Leonid Startsev
7c942af13d
Add synthetic companion with .serializer() getter even if default serializer is overridden. (kotlinx.serialization/228)
2019-02-19 15:52:04 +03:00
Leonid Startsev
1e440efc01
Ban primitive arrays in JVM codegen too (fixes kotlinx.serialization/260)
2019-02-19 15:52:04 +03:00
Leonid Startsev
5231ef9966
Don't generate writeSelf/internal constructor if corresponding serialize/deserialize aren't auto-generated
2019-02-19 15:52:04 +03:00
Leonid Startsev
a6651fd6f9
Call superclass deserialization constructor if superclass is also internal serializable or no-arg ctor of non-serializable class on Native and JS
2019-02-19 15:52:04 +03:00
Leonid Startsev
e02cfcb8ea
Replace @Optional with @Required
2019-02-19 15:52:04 +03:00
Leonid Startsev
04706f4473
Support classes with more than 32 serializable properties
...
Via increasing count of int bit masks in synthetic constructor
2019-02-19 15:52:04 +03:00
Leonid Startsev
08f983ef52
Semantic change:
...
Now properties with default values are @Optional by default, and properties without backing fields are @Transient by default.
2019-02-19 15:52:04 +03:00
Leonid Startsev
cca03e9586
Make enums and interfaces not serializable internally. However, they
...
still can be serialized using custom companion object.
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/138 and https://github.com/Kotlin/kotlinx.serialization/issues/304
2019-02-19 15:52:04 +03:00
Nikolay Krasko
c41d6c427d
Fix flaky navigation tests by refreshing file system before find
2019-02-19 15:42:32 +03:00
Mads Ager
e9ec8e2cee
JVM_IR: Do not generate annotations on $default methods.
2019-02-19 13:23:42 +01:00
Mikhael Bogdanov
19d2bac2f8
Temporary disable test in IR
2019-02-19 13:05:05 +01:00
Toshiaki Kameyama
8cdf901538
Keyword completion: do not suggest const except inside top level or object
...
#KT-23026 Fixed
#KT-29840 Fixed
2019-02-19 14:57:44 +03:00
Mikhail Glukhikh
7d809bc1d5
Fix 181 compilation (AbstractFirResolveWithSessionTestCase)
...
We could fix it better, but anyway FIR & its tests aren't important
for this branch
2019-02-19 14:33:47 +03:00
Mikhail Glukhikh
7952249cd9
FIR: prevent SDK leak error in total kotlin IDE test
...
Related to KT-24077
2019-02-19 14:12:43 +03:00
Mikhail Glukhikh
2bc22fc2a6
FIR: fix Gradle configurator exception in total IDE test
2019-02-19 14:12:26 +03:00
Simon Ogorodnik
a6297f5f2f
Refactor FIR total resolve in IDE test fixing various problems
...
Related to KT-24077
2019-02-19 14:11:43 +03:00
Simon Ogorodnik
5cef869d36
FIR: add symbol provider for IDE #KT-24097 Fixed
...
Functions & properties aren't yet supported
2019-02-19 14:11:11 +03:00
Mikhail Glukhikh
12ee81358c
FIR: Add total resolve test in IDE mode (related to KT-24077)
2019-02-19 14:02:01 +03:00
Toshiaki Kameyama
779d536605
Redundant getter: fix false positive for 'external' getter
...
#KT-29416 Fixed
2019-02-19 13:03:11 +03:00
Mikhael Bogdanov
3b57ceeafe
Don't generate annotations on $default methods
...
#KT-29965 Fixed
2019-02-19 10:51:37 +01:00
Mikhael Bogdanov
a020170a92
Report missed INLINE_FROM_HIGHER_PLATFORM diagnostic for derived class
...
Inline function descriptor in derived class represented as FAKE_OVERRIDE.
So we should find it in base class declaration
(not interface cause inline function can't be virtual, but always final)
and then check class version.
#KT-29402 Fixed
2019-02-19 10:51:36 +01:00
Mikhael Bogdanov
b03065b2ba
Minor. Reformat
2019-02-19 10:51:35 +01:00
Kirill Shmakov
b844e587ed
Fix KT-29804: rename app -> main
...
#KT-29804 Fixed
Reviewed at KOTLIN-CR-2735
2019-02-19 12:14:34 +03:00
Sergey Rostov
db8f423880
JPS Build, update artifacts: fix js stdlib, remove stdlib-jdk7 and 8
2019-02-19 11:39:53 +03:00
hisaaki.sioiri
f1cc7cecce
Escaping quotes in live-templates (KT-2387)
...
#KT-2387 Fixed
2019-02-19 11:18:13 +03:00
Toshiaki Kameyama
7149d4cd1c
Group by file structure: show groups on text search (KT-28838)
...
#KT-28838 Fixed
2019-02-19 11:18:13 +03:00
Stanislav Erokhin
76f2430e7c
Code of Conduct for Kotlin project
2019-02-19 11:04:37 +03:00