Leonid Startsev
662e918a7b
Support skipping values equals to defaults in output stream for JS and IR backends
2018-11-21 15:59:56 +03:00
Leonid Startsev
dba6396e95
Support enums according to new design
2018-11-21 15:59:55 +03:00
Leonid Startsev
f101e17dfa
Support reference array and context serializers
...
Enum serializers are also instantiated, but won't work on native because of lack of KClass<E: Enum<E>>.enumValues()
2018-11-21 15:59:54 +03:00
Leonid Startsev
ef42201b05
Fix order of overriding @Serializable(with) on property: check override, than @ContextualSerialization.
...
This will apply Context serializer event if class annotated @Serializable
2018-11-21 15:59:53 +03:00
Leonid Startsev
abb8e5e914
Support @Transient properties initializers and init blocks in IR plugin
2018-11-21 15:59:52 +03:00
Leonid Startsev
104368de3b
Better lookup for serializer() function in companion for generic classes because user can define a parameterless shorthand one
...
Fixes Kotlin/kotlinx.serialization/#228
2018-11-21 15:59:51 +03:00
Leonid Startsev
077f51e2f4
Generics serialization in IR
2018-11-21 15:59:50 +03:00
Leonid Startsev
a4a1df0a81
Add information about secondary constructors to synthetic classes.
...
Before this, descriptors for such constructors were created in-place where they needed by the codegens.
However, presence of symbol table in IR backend requires the single instance of constructor descriptor across all compilation to be able to reference it and create a symbol. This support of generics in kotlinx.serialization on Kotlin/Native.
2018-11-21 15:59:49 +03:00
Leonid Startsev
01d3c7bdc8
Descriptors for IR
2018-11-21 15:59:48 +03:00
Leonid Startsev
3010814327
.childSerializers for JS
2018-11-21 15:59:47 +03:00
Leonid Startsev
baf8cb6e9b
Replace imported serialization-ide.jar with serialization-compiler.jar so JPS build also start working
2018-11-21 15:59:46 +03:00
Leonid Startsev
e40383b1ce
Introduce GeneratedSerializer and childSerializers
...
Descriptors passing on JVM
2018-11-21 15:59:45 +03:00
Leonid Startsev
f0e81c6eb8
Respect @ContextualSerialization on file
...
Add common ancestor to all serializable generators
2018-11-21 15:59:44 +03:00
Leonid Startsev
82fa152514
Remove auto-applying ContextSerializer
2018-11-21 15:59:43 +03:00
Nicolay Mitropolsky
0cfce8bd99
Evaluating string constants in injections in String Interpolations (KT-25906)
2018-11-21 15:37:57 +03:00
Mikhail Glukhikh
0489efc0ae
Get rid of !! in getDataFlowAwareTypes #KT-28200 Fixed
2018-11-21 15:13:35 +03:00
Mikhail Glukhikh
5385efd7d7
Do not start import fixes in write action because pop-up is possible
...
I was not able to reproduce the issue. However, according the rules
quick-fixes working with pop-ups should not start in write action
#KT-28196 Fixed
2018-11-21 15:13:22 +03:00
Mikhail Glukhikh
1585461a68
Fix create expected for classes with anonymous initializers
2018-11-21 15:13:02 +03:00
Mikhail Glukhikh
99388c304f
Fix create expected for non-actual nested class case
2018-11-21 15:13:02 +03:00
Mikhail Glukhikh
a4214f13c8
Forbid create expected on class member when class has no expected itself
...
Related to KT-27075
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
8b7c7dbe25
Create expected quick-fix: check types accessibility before creation
...
Related to KT-27075
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
f31428257d
Add a set of new tests for KT-27075 (create expected class) + some fixes
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
4ab4358d22
OverrideMemberChooserObject cleanup: remove forceAbstract (function gen)
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
2277dcc76f
Introduce quick-fix "create expected class / function / property"
...
#KT-27075 Fixed
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
5c6f776c09
Add actual: handle already existing declarations more precisely
...
#KT-23693 Fixed
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
46a5d76254
Create actual: add delegation to secondary constructor, if needed
...
#KT-26518 Fixed
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
90a2f70fd1
Use OverrideMemberChooserObject to generate also primary constructors
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
cd041cca71
Use OverrideMemberChooserObject to generate also abstract actual decls
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
3612c2983e
Use OverrideMemberChooserObject to generate actual decls in quick-fixes
...
This can fix a lot of issues related to inexact generation, in particular
#KT-27093 Fixed
2018-11-21 15:12:59 +03:00
Sergey Rostov
5645b6c1b7
Add upsource IDEA plugin shared configuration
2018-11-21 14:36:20 +03:00
Dmitry Petrov
b3ce2eea39
Add LanguageVersionSettings to KotlinTypeMapper
...
KotlinTypeMapper clients should use proper LanguageVersionSettings when
possible.
2018-11-21 12:01:41 +03:00
Yan Zhulanow
5636227857
Android Extensions: Use lazy package fragment descriptors only in IDE
2018-11-21 12:34:01 +09:00
Yan Zhulanow
4f3f813b32
Android Extensions: Make AndroidPackageFragmentProviderExtension lazy
2018-11-21 12:34:01 +09:00
Yan Zhulanow
6f8d44750a
Android Extensions: analyze layout XMLs lazily
2018-11-21 12:34:01 +09:00
Yan Zhulanow
12a05e0006
Android Extensions: Use smart pointers in 'AndroidResource'
2018-11-21 12:34:01 +09:00
Ilya Gorbunov
3d2a3cddff
Stop producing empty kotlin-stdlib-coroutines jar
2018-11-21 03:42:27 +03:00
Simon Ogorodnik
bc7ef66a28
Fix codeStyleSettings damaged test failure properly
2018-11-20 22:13:06 +03:00
Alexander Udalov
67bc8d62fc
Do not store JVM reflection objects by soft reference
...
Otherwise they might be garbage-collected before being made accessible
with `isAccessible = true` and the reflective call.
Also, compute BoxUnboxData in InlineClassAwareCaller right away, to
prevent storing a hard reference on the descriptor (all descriptors and
related data are stored by soft references in kotlin-reflect).
#KT-27585 Fixed
2018-11-20 17:54:01 +01:00
Mikhail Zarechenskiy
9d2524a790
Fix failing test because of lack of inference annotation
...
LINENUMBER was incremented because of added import
2018-11-20 19:36:50 +03:00
Mikhail Zarechenskiy
761cf0812b
Minor: add test for obsolete issue
...
#KT-8050 Obsolete
2018-11-20 19:36:50 +03:00
Mikhail Zarechenskiy
7327928449
Refactoring: extract common code into the method
2018-11-20 19:36:50 +03:00
Ilmir Usmanov
fda0901b39
Remove usages of kotlin-stdlib-coroutines.jar in tests
2018-11-20 19:09:27 +03:00
Igor Chevdar
2f3ff60abc
Fixed bug with fake overridden functions with defaults
2018-11-20 12:11:29 +03:00
Toshiaki Kameyama
c49770d9a7
Unused symbol: don't report for type parameter in open class #KT-23639 Fixed
2018-11-20 11:18:18 +03:00
Toshiaki Kameyama
bc4d353134
Unused symbol: fix message for interface #KT-28286 Fixed
2018-11-20 11:14:45 +03:00
Matthew Runo
56d354223e
Updated suggested issues link to only query the KT project rather than all projects.
2018-11-20 10:52:14 +03:00
Matthew Runo
08d70cbfe8
Update to better describe first time import of project. Changed URL for up for grabs to filter to only show Open issues.
2018-11-20 10:52:14 +03:00
Dmitry Petrov
3efb07bf7b
Return kotlin ctor mapped to a java ctor even if java ctor is synthetic
...
This allows working with constructors with inline class parameters using
Kotlin reflection, as described in
https://youtrack.jetbrains.com/issue/KT-27429#focus=streamItem-27-3161148-0-0
#KT-27913
#KT-27429
2018-11-20 09:53:18 +03:00
Dmitry Petrov
9082f19c00
KT-25907: Use proper loop parameter type in for-in-CharSequence
2018-11-20 09:52:09 +03:00
Natalia Selezneva
b8086d9093
Do not start multiple background threads loading dependencies for different scripts
...
^KT-27743 Fixed
2018-11-20 08:51:03 +03:00