Nicolay Mitropolsky
e0e5009f3f
191: Uast: StringTemplateComplexForUInjectionHost testdata fix
2019-02-25 19:24:51 +03:00
Leonid Startsev
472d91e0de
Do not return whole list of generated property descriptors for type
...
arguments' serializers when only one name is needed.
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/383
2019-02-25 19:21:29 +03:00
Nicolay Mitropolsky
f9813af3ff
191: Uast: KotlinUSimpleReferenceExpression bunch fix
2019-02-25 18:13:18 +03:00
Nicolay Mitropolsky
5786ab5140
Uast: making KotlinClassViaConstructorUSimpleReferenceExpression also handle deserialized descriptors
2019-02-25 16:35:46 +03:00
Nicolay Mitropolsky
25e00c9079
Uast: making KotlinClassViaConstructorUSimpleReferenceExpression resolve to class in case of SAM (KT-28272)
2019-02-25 16:35:46 +03:00
Nicolay Mitropolsky
d7584df01b
Uast: making ULambdaExpression.functionalInterfaceType return non-null values for explicitly typed SAM-s with Java interfaces (KT-28272)
2019-02-25 16:35:46 +03:00
Yan Zhulanow
ea462091c4
Support new convention for local variables name mangling: '$receiver' -> '$this$<label>' (KT-26913)
2019-02-25 14:43:53 +03:00
Nicolay Mitropolsky
6b792c36f0
KotlinUastApiTest: using kfail alias
2019-02-25 12:26:22 +03:00
Nicolay Mitropolsky
712c897472
Uast: fix for UVariables missing typeReferences
2019-02-25 12:26:21 +03:00
Nicolay Mitropolsky
98740138f3
Uast: yet another check for invalid context before resolve (EA-137191, EA-137193)
2019-02-25 12:26:21 +03:00
Nicolay Mitropolsky
bd0c6736ce
Uast: implementing specific javaPsi for UVariables
2019-02-25 12:26:21 +03:00
Nicolay Mitropolsky
7dc818d42b
191: KotlinUastApiTest.kt missed bunch aligning fix
2019-02-25 12:26:21 +03:00
Ilya Chernikov
d1a1594f26
Remove redundant direct usages of the ScriptDefinition in compiler
...
plus some refactoring around definition extraction
2019-02-21 15:59:48 +01:00
Ilya Chernikov
cc4aedb807
Move the rest of script descriptor implementation details to plugin, cleanup
2019-02-21 15:59:48 +01:00
Ilya Chernikov
e28017039d
Split scripts and class/object declarations in DeclarationsProvider
...
simplifies code in most places, avoids filtering in places where they
should be processed independently
2019-02-21 15:59:48 +01:00
Ilya Chernikov
a218455193
Extract script descriptor creation to scripting plugin
2019-02-21 15:59:48 +01:00
Natalia Selezneva
f3c828a17d
Get platform for scripts from script definition
...
Introduce 'platform' property in KotlinScripDefinition (should have a value which exists in TargetPlatform.ALL_KINDS)
^KT-27684 Fixed
2019-02-20 15:59:44 +03: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
Andrey Uskov
59bcd608a1
Minor. Remove useless code related to IJ 173 and AS 3.1 in build scripts
2019-02-17 12:29:01 +03:00
Yan Zhulanow
1fbf51ea13
Kapt: Ignore imports for enum entries on import conversion (KT-28220)
2019-02-15 21:23:27 +03:00
Yan Zhulanow
87cad2af02
Kapt: Fix "no interface expected here" in class implementing interface with secondary constructor (KT-27506)
2019-02-15 21:23:27 +03:00
Yan Zhulanow
1c824655d4
Kapt: Fix supertype conversion for DefaultImpls (KT-28306)
2019-02-15 21:23:26 +03:00
Nicolay Mitropolsky
a29bf61d05
191: fix for KotlinUastReferencesTest reference target assertion added in 191
2019-02-14 20:44:17 +03:00
Nicolay Mitropolsky
48619a49ed
RenameKotlinPropertyProcessor made not update the property before all references are updated (KT-27602)
...
because otherwise language independent bean property references couldn't properly handle rename in some cases.
Groovy references were also affected by this bug because they weren't able to resolve to original property
2019-02-14 13:27:06 +03:00
victor.petukhov
46bd5ba107
Add alphabetical sorting diagnostics with same ranges
2019-02-14 12:31:42 +03:00
victor.petukhov
b354518a41
Add lazy debug diagnostic DEBUG_INFO_EXPRESSION_TYPE
2019-02-14 12:31:42 +03:00
victor.petukhov
f92232f015
Decompose and rewrite CheckerTestUtil to Kotlin
2019-02-14 12:31:42 +03:00
Yan Zhulanow
9729932fe4
191: Update Android plugin changes to AS33 (KT-29847)
2019-02-13 16:35:46 +03:00
Ilya Chernikov
c6a24c03e4
Move CliScriptDefinition provider to the plugin too, fix tests
2019-02-10 13:33:22 +01:00
Ilya Chernikov
2f52df0640
Initialize scripting plugin in other tests
2019-02-10 13:31:57 +01:00
Ilya Chernikov
2b67dbe8dd
Initialize scripting in tests if script is passed as a source
2019-02-10 13:31:56 +01:00
Ilya Chernikov
0732b48701
Move script related configuration to the plugin
2019-02-10 13:31:55 +01:00
Mikhail Glukhikh
bef0249347
UAST: do not analyze KtPsiFactory-created files #KT-29486 Fixed
2019-02-01 13:26:17 +03:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Leonid Startsev
8eeb9d4faa
[kx.serialization] Fix serializer resolving for file-level annotations:
...
Instantiating ContextSerializer for primitives with boxing (fixes https://github.com/Kotlin/kotlinx.serialization/issues/349 )
Unwrap nullable type when looking for general-defined serializer (fixes https://github.com/Kotlin/kotlinx.serialization/issues/351 )
Add lost java collection types and fix annotation name (fixes https://github.com/Kotlin/kotlinx.serialization/issues/343 )
2019-01-30 19:42:08 +03:00
Nicolay Mitropolsky
dcbd441814
Uast: aligning bunches after moving all convert* methods to KotlinConverter in 191
2019-01-30 12:42:37 +03:00
Nicolay Mitropolsky
b45172a7f8
191: Uast: support convertToAlternatives for KtFile
2019-01-30 12:42:37 +03:00
Nicolay Mitropolsky
4df72b4f79
191: Uast: refactoring: all convert* methods were moved to KotlinConverter
2019-01-30 12:42:37 +03:00