Alexander Udalov
4c9afb9d20
Move testable IS_PRE_RELEASE flag to KotlinCompilerVersion
...
It'll be used in the JS back-end as well soon, so
DeserializedDescriptorResolver is not the best place for it
2017-02-13 12:11:15 +03:00
Stanislav Erokhin
3efda0e45a
Reserve yield if it isn't function call.
2017-02-13 02:53:37 +03:00
Ilya Chernikov
9eae929084
Fixes after review
2017-02-11 16:27:27 +01:00
Ilya Chernikov
39d204c550
Adjust test after introducing shutdown delay
2017-02-11 16:27:26 +01:00
Ilya Chernikov
cb7de0e262
Implement more reliable daemon election, fixes KT-15562
...
also making shutdown more reliable
2017-02-11 16:27:25 +01:00
Ilya Chernikov
ebf9e386b0
Add test reproducing "Service is dying" problem (KT-15562)
2017-02-11 16:27:24 +01:00
Alexey Andreev
7192529733
JS: drop support of old library format
2017-02-10 21:04:50 +03:00
Ilya Chernikov
82320bdf7d
Make maven/aether dependencies optional in the script-util
...
(cherry picked from commit 8197240)
2017-02-10 16:03:06 +01:00
Ilya Chernikov
46894da981
Get rid of daemon-client dependency on openapi, making others "provided"
...
(cherry picked from commit 175d74c)
2017-02-10 16:02:55 +01:00
Ilya Chernikov
f6fd9441e9
Move scripting options into separate panel
...
(cherry picked from commit c06592e)
2017-02-10 14:44:36 +01:00
Dmitry Petrov
20dc1a047d
KT-16250 Handle type alias as imported name qualifier
...
#KT-16250 Fixed
2017-02-10 16:32:07 +03:00
Denis Zharkov
5f843f6759
Fix intrinsic for String.plus for explicit calls
...
#KT-14567 Fixed
2017-02-10 16:05:15 +03:00
Denis Zharkov
fcb4db0226
Remove redundant ACC_VARARGS on methods generated with @JvmOverloads
...
#KT-15424 Fixed
2017-02-10 16:05:15 +03:00
Denis Zharkov
1f179a6f01
Add test on obsolete issue
...
#KT-15196 Obsolete
2017-02-10 16:05:15 +03:00
Denis Zharkov
b989bfce59
Fix VerifyError with @JvmStatic annotated getter
...
The problem was that for property getter 'context.getContextDescriptor()'
references the containing property, while 'context.getFunctionDescriptor()'
the accessor itself
#KT-15594 Fixed
2017-02-10 16:05:15 +03:00
Denis Zharkov
dd275eda78
Minor. Refine class name: JvmStaticGenerator -> JvmStaticInCompanionObjectGenerator
2017-02-10 16:05:15 +03:00
Dmitry Jemerov
87187437ab
Update UAST to version 1.0.11
2017-02-10 13:55:25 +01:00
Ilya Chernikov
da2f310895
Convert line endings when creating ReplCodeLine, fixes KT-15861
...
(cherry picked from commit 894ee4c)
2017-02-09 22:00:30 +01:00
Ilya Gorbunov
c6cb389591
JS kotlin.dom: deprecate asElementList harder.
...
Minor: correct exception message.
2017-02-09 22:15:51 +03:00
Ilya Gorbunov
9a7405adc6
Make javaClass extension property inline to remove further references from Kotlin.
2017-02-09 22:15:25 +03:00
Ilya Gorbunov
63f591bde9
Deprecate some utils and provide sensible replacements from stdlib.
2017-02-09 18:21:51 +03:00
Anton Bannykh
c7d4a4edf4
JS: test property inline through fake override
2017-02-09 15:46:06 +03:00
Stanislav Erokhin
58c2466a52
Minor. use when instead of if sequence.
2017-02-09 15:42:33 +03:00
Stanislav Erokhin
b616ef0a40
Do not force resolve descriptors for explicit imports. Create lazy scope instead.
2017-02-09 15:42:30 +03:00
Stanislav Erokhin
cc429cd865
Fix NewKotlinTypeChecker for case SimpleType with CapturedTypeConstructor.
...
Usually, we have only CapturedType with such constructor.
We should prevent creation such types in the future (KT-16147).
Also added test for KT-14740 where this problem originally appears.
2017-02-09 15:32:18 +03:00
Alexander Udalov
7147008e21
Fix functionFromStdlib.kt by making the member accessible
...
#KT-16263 Open
2017-02-09 14:56:27 +03:00
Dmitry Petrov
a4f9e46c08
Fix https://ea.jetbrains.com/browser/ea_reports/1337846 :
...
Properly handle AbbreviatedTypeBinding for error types.
Get rid of code duplication.
2017-02-09 12:36:52 +03:00
Mikhael Bogdanov
b1e2db21d3
Fix for KT-16225: enumValues non-reified stub implementation references nonexistent method
...
#KT-16225 Fixed
2017-02-09 10:23:32 +01:00
Alexey Sedunov
ba73269ee0
Kotlin Facet: Do not show implicit compiler arguments in "Additional arguments" field
2017-02-09 11:41:05 +03:00
Alexey Sedunov
52102d359a
Kotlin Gradle Plugin: Expose default compiler arguments via compilation task API
2017-02-09 11:41:04 +03:00
Ilya Gorbunov
ec01200997
Introduce ItemArrayLike interface and replace multiple asList adapters with the single one.
2017-02-08 23:31:58 +03:00
Ilya Gorbunov
41c980bcab
Massive deprecations in kotlin.dom
2017-02-08 23:31:58 +03:00
Ilya Gorbunov
365f8d0256
Drop pre-1.0 deprecated dom helpers.
2017-02-08 23:31:58 +03:00
Simon Ogorodnik
a9f2f5c7d0
Fix for complete slowdown of DefaultImportProvider after introducing languageVersion for default imports
...
KT-16243 Very slow completion after variable of type `ArrayList`
#KT-16243 fixed
2017-02-08 21:30:32 +03:00
Ilya Gorbunov
e9f40c41c2
Minor: refactor and rename parameters.
2017-02-08 20:16:10 +03:00
Ilya Gorbunov
31da36bedf
Minor: Add test cases for adding and removing null value to/from set.
...
Fix unused value in removeAll test.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
c37540c727
Minor: fix missing angle bracket.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
287a513f23
Provide KDoc for js collection implementations.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
2269b9839f
Restrict visibility of AbstractMap.SimpleEntry in JS
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
fc7b1c8611
KDoc for mutable abstract collections.
...
Document abstract overrides.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
ef5e53b37b
KDoc for read-only abstract collections
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
7c54c48e00
Add a note about generic parameter variance to Iterable, Collection, List, Set, Map and their mutable counterparts.
...
Minor: correct docs, code formatting.
2017-02-08 20:13:22 +03:00
Alexander Udalov
ccbfa2e81d
Fix Member.getKPackage and temporarily revert functionFromStdlib.kt
2017-02-08 20:02:49 +03:00
Alexander Udalov
6d16ea0a3a
Fix reflection on top level declarations from other modules
...
The main problem here is that moduleName that is being passed to KPackageImpl
is useless: as can be seen in
ClosureCodegen.generateCallableReferenceDeclarationContainer, the name of the
current module is always written to the class file for a callable reference,
not the name of the module of the referenced declaration. This resulted in
reflection not loading the correct .kotlin_module file and subsequently not
finding the required file facade for a top-level function.
The commit does not fix the issue with the incorrect module name written in the
back-end, but workarounds it. It turns out, reflection can figure out the name
of the module of the referenced declaration itself by parsing the header from
the given java.lang.Class object for a single-file/multi-file package facade
and extract the package_module_name protobuf extension. Similar code was
already there in Member.getKPackage() in ReflectJvmMapping.kt but it did not
support multi-file classes, of which there are a lot in the standard library;
this is now supported
#KT-12630 Fixed
#KT-14731 Fixed
2017-02-08 19:23:18 +03:00
Alexander Udalov
8a79482c5c
Minor, rename packageFacadeProvider -> packagePartProvider
2017-02-08 19:23:18 +03:00
Yan Zhulanow
131570080d
Kapt3: Generate import statements in stubs
2017-02-08 19:01:17 +03:00
Yan Zhulanow
69a063b0b2
Kapt3: Serialize annotation processor options to base64 to support spaces in option values
2017-02-08 19:01:16 +03:00
Yan Zhulanow
8479618632
Kapt3: Invoke integration tests with the Kotlin runtime in the compile classpath (this fixes integration tests, nullability annotations from org.jetbrains were not found)
2017-02-08 19:01:15 +03:00
Yan Zhulanow
823781ea6c
Kapt3: "$annotations" are not always ACC_PRIVATE now (see also KT-15993)
2017-02-08 19:01:14 +03:00
Yan Zhulanow
2553513205
Kapt3: Allow users to disable error type correction (and now it's disabled by default)
2017-02-08 19:01:13 +03:00