Ilya Muradyan
400ea13f07
Fix scripting REPL completion after literals
2020-04-17 09:37:35 +02:00
Ilya Muradyan
d2fec96f38
Add new REPL API JVM implementation
2020-04-16 21:16:08 +02:00
Ilya Muradyan
b240fce224
Add incompleteCode diagnostic type
2020-04-16 21:16:08 +02:00
Ilya Muradyan
af251cafa4
Add info about the end of range in scripting REPL compiler messages
2020-04-16 21:16:08 +02:00
Nicolay Mitropolsky
d3f357ee47
Uast: KotlinUastReferencesTest falling in 193 fix
2020-04-16 14:14:29 +03:00
Mikhail Zarechenskiy
cf90fe81ac
Move Sam(TypeAlias)ConstructorDescriptor to core
2020-04-15 02:06:32 +03:00
Nicolay Mitropolsky
738e2f813c
Uast: expression type for assigning arrays (KT-34187)
2020-04-14 18:27:34 +03:00
Nicolay Mitropolsky
9674643254
Uast: support for UYieldExpression (KT-35574)
2020-04-14 18:27:34 +03:00
Ilya Chernikov
4ecedf2e3b
Get rid of KTUsefulTestCase, improve stability of the tests
2020-04-14 14:15:11 +02:00
Vladimir Dolzhenko
b0483a67c2
Perform tryLock-and-checkCanceled on waiting lock in LockBasedStorageManager
...
Relates to #KT-38012
2020-04-14 13:11:30 +02:00
Roman Artemev
cd931796bc
[SERIALIZATION] Fix kotlinx.serialization plugin
2020-04-14 11:12:08 +03:00
Roman Artemev
a9788f9506
[KLIB] Create an abstract class for module deserializer
...
- Introduce Ir-based Functional interface factory
- Switch from LazyIr to pure
- Use kotlin library to access raw bytes
- Link dirty files against IC cache and dependencies instead of LazyIr
- Move `DescriptorByIdSignatureFinder` from K/N to common
- Support inline-bodies only MODE
2020-04-14 11:12:08 +03:00
Ilya Chernikov
195a90d333
Cleanup warnings in scripting code
2020-04-13 13:49:34 +02:00
Ilya Chernikov
d863dc04e6
Move compiler scripting tests to scripting plugin, remove unused funs
...
also remove some tests that are covered in the scripting-compiler
tests now.
Part of the cleanup to rewrite scripting to the new infrastructure.
2020-04-13 13:49:34 +02:00
Ilya Chernikov
cf387ffad1
Remove obsolete source-sections plugin
2020-04-13 13:49:33 +02:00
Ilya Chernikov
138efda19f
Refactor scripting - get rid of unused type parameter in CompiledScript
2020-04-13 13:49:33 +02:00
Ilya Chernikov
c64ba50655
Abstract script compiled module implementation used in saving/caching
...
removes classloading problem when main-kts is loaded from a CL
without scripting compiler.
Also relax dependencies collection on saving to a jar and hide redundant
logging.
Running main.kts script via a run configuration works now.
#KT-37765 fixed
2020-04-13 13:49:32 +02:00
Ilya Chernikov
278f77713d
Fix default base classloader initialization for scripting hosts
...
also refactor runner functions
#KT-37823 fixed
2020-04-13 13:49:32 +02:00
Ilya Chernikov
6a24268db1
Fix scripting discovery file recognition for directory dependencies
2020-04-13 13:49:32 +02:00
Georgy Bronnikov
166b506f63
IR: only require all type parameter references to be local with new inference
2020-04-13 14:34:57 +03:00
Nicolay Mitropolsky
e815227196
Uast: resolve compiled annotation parameters (KT-34564)
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky
b1bd962464
Uast: kotlinInternalUastUtils.kt reordering to move internal functions to the top
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky
f5df64674f
Uast: making local lambda resolve and methods multiresolve work via resolveToDeclaration and resolveToPsiMethod
...
also fixes KT-36275
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky
89863bd2a3
Uast: unifying resolve to two methods resolveToDeclaration and resolveToPsiMethod
2020-04-09 16:38:12 +03:00
Nicolay Mitropolsky
c3977d7336
Uast: replacing most usages of resolveCallToDeclaration with resolveToPsiMethod
2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky
ab36e20b1b
Uast: resolving local calls (KT-36275)
2020-04-09 16:38:11 +03:00
Nicolay Mitropolsky
6803b37d14
Uast: Making AbstractKotlinResolveEverythingTest test also UCallExpression
...
current test data is just frezing the current state which is probable incorrect
2020-04-09 16:38:11 +03:00
Leonid Startsev
60efab24ea
Add @SerializableWith on objects too
...
to be able to retrieve them via getAssociatedObject and serializer<T>()
function. Now object itself is a SerializerFactory.
2020-04-08 14:12:01 +03:00
Leonid Startsev
d4fc6774f3
Support new 'typeParametersSerializers' function
...
from GeneratedSerializer
2020-04-08 14:12:01 +03:00
Leonid Startsev
ceb3cfbfd5
Remove update* calls
2020-04-08 14:12:01 +03:00
Leonid Startsev
add0b461ee
Refactor calls to beginStructure
...
typeParams argument has been removed
2020-04-08 14:12:00 +03:00
Mikhail Zarechenskiy
86fd4da567
[UAST] Fix mapping types containing type aliases
...
#KT-27935 Fixed
2020-04-08 01:25:14 +03:00
Leonid Startsev
0054c22ef2
Use correct return type for serializers
...
from runtime library.
If used unsubstituted, they cause
e: java.lang.IllegalArgumentException: Unbound type parameters are forbidden
because type parameter T from e.g. PolymorphicSerializer<T> leaked outside.
2020-04-03 12:46:44 +03:00
Pierre-Luc Carmel Biron
352a860e46
Add system classloader as a parent of ReplClassLoader.
2020-04-02 19:22:39 +02:00
Ilya Gorbunov
5eabc1117f
Generate constant expression initializers for special fp values in kapt
...
Update new constant values propagated in kapt class-to-stub test
2020-04-01 08:06:57 +03:00
Dmitriy Dolovov
e69b2ed47d
Drop redundant dependencies on :native:kotlin-native-utils
2020-04-01 11:47:01 +07:00
Nicolay Mitropolsky
3f00de5d7b
Uast: fallback to call braces in getting the anchor for call-expressions in complex cases (KT-36273)
2020-03-31 11:56:31 +03:00
Nicolay Mitropolsky
f98a1de7c3
Uast: making convertDeclaration always convert the originalElement (KT-35848)
2020-03-31 11:56:31 +03:00
Nikolay Krasko
02b651ef28
201: Update to 201.6668.13
2020-03-30 18:09:30 +03:00
Nicolay Mitropolsky
872b140500
Uast: support for annotated expressions (KT-35801)
2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky
c4bd1ce73c
Uast: considering top reified functions as static (KT-37613)
2020-03-30 11:58:51 +03:00
Nicolay Mitropolsky
0ca67c1bac
Uast: handling reified methods receivers (KT-37613)
2020-03-30 11:58:51 +03:00
Dmitry Gridin
62760bdac3
i18n: update bundle in idea-gradle
...
#KT-37483
2020-03-30 14:58:29 +07:00
Nicolay Mitropolsky
2eb6f1988d
Uast: process catch parameters and finally blocks (KT-35804)
2020-03-26 12:55:45 +03:00
Nicolay Mitropolsky
f1d5570ca1
Uast: include parameters of reified methods to uast tree (KT-37613)
2020-03-26 12:55:44 +03:00
Ilmir Usmanov
be87d5fab5
JVM_IR: Serialization: do not mess with return types of call expressions
...
If return type of IrConstructor is different from containing class, we will
generate call to wrong <init> method, leading to VerifyError.
If we do not specify the type of irNull, it, by default, will be Nothing?,
when really we need Any?. This leads to CCE: cannot cast to Void at runtime.
2020-03-19 15:18:32 +01:00
Dmitry Gridin
cb3a31af6e
UAST: implement KotlinUastCodeGenerationPlugin for 201
...
#KT-37569 Fixed
2020-03-19 16:58:58 +07:00
Mikhail Glukhikh
26f919df03
Fix some nullable usages of not-null type parameters (KT-36770)
2020-03-18 10:24:26 +03:00
Nikolay Krasko
1afd3d929a
201: Update to 201.5985.32
2020-03-12 03:02:28 +03:00
Leonid Startsev
e495c35ad7
Use upper bound as a type for polymorphic serializer
...
when it is used in sealed class case
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/753
2020-03-11 17:09:05 +03:00