Mikhael Bogdanov
20da778046
Add default values to KotlinTypeMapper constructor, remove them from call sites
...
~
2019-03-05 20:34:25 +01:00
Mikhael Bogdanov
cc0c3b1592
Specify default value for irBackend
2019-03-05 20:33:35 +01:00
Nicolay Mitropolsky
f664499708
Uast: getMaybeLightElement cleanup
2019-03-05 14:30:08 +03:00
Nicolay Mitropolsky
ec1badf60d
Uast: testing resolve for method called on variables of parametrized types
2019-03-05 14:30:08 +03:00
Nicolay Mitropolsky
5268cd4663
Uast: type-parameter references resolves to type-parameters
2019-03-05 14:30:07 +03:00
Nicolay Mitropolsky
ec26ea4e36
Uast: TypeReferences log test added
2019-03-05 14:30:07 +03:00
Nicolay Mitropolsky
adb13b2f9e
Uast: ResolveEverythingTest tests for generics added
2019-03-05 14:30:07 +03:00
Nicolay Mitropolsky
337f16194a
Uast: resolving references to local function declarations
2019-03-05 14:30:07 +03:00
Nicolay Mitropolsky
72860fb695
Uast: making KotlinUSimpleReferenceExpression able to resolve to types
2019-03-05 14:30:07 +03:00
Nicolay Mitropolsky
e1e1e53e4a
Uast: setup for KotlinUastResolveEverythingTest
2019-03-05 14:30:07 +03:00
Ilya Chernikov
e99715cf82
Extract extra imports provision into an extension, implement one ...
...
for script in the plugin, drop direct dependency on scripts from
FileScopeFactory
2019-03-02 08:10:17 +01:00
Ilya Chernikov
57ac149f5b
Extract script cli evaluation to the plugin
2019-03-02 08:10:17 +01:00
Ilya Chernikov
7c3bdde102
Fix sequence of the script definitions search - explicit ones should be tried first
2019-03-02 08:10:16 +01:00
Ilya Chernikov
196e274929
Move calculating dependencies from script sources to plugin
2019-03-02 08:10:16 +01:00
Ilya Chernikov
336f43dbf2
Reorganize files and folders in the scripting plugin
2019-03-02 08:10:16 +01:00
Ilya Chernikov
adb4d264ec
Move script definition extraction functions to the plugin
...
plus finish refactoring of these functions
2019-03-02 08:10:16 +01:00
Nicolay Mitropolsky
815fcd062d
Uast: caching isJvmElement if all modules are Jvm (KT-28564)
2019-03-01 20:14:57 +03:00
Nicolay Mitropolsky
9c674cb7c3
Uast: support for KtDelegatedSuperTypeEntry (KT-30033)
2019-03-01 15:00:31 +03:00
Natalia Selezneva
869fb46c0b
Optimize KotlinUFunctionCallExpression.isAnnotationArgumentArrayExpression
2019-02-28 10:59:12 +03:00
Vyacheslav Gerasimov
a42f607ecf
Build: Fix artifacts signing for maven central
...
With gradle > 5.0 `publish()` helper call should be done before
`noDefaultJar()` or any other artifact hacks, otherwise singing plugin doesn't sign any jars
2019-02-27 13:21:17 +03:00
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