Commit Graph

36956 Commits

Author SHA1 Message Date
Stanislav Erokhin ec2eec33e3 Added hint url for coroutines and multiplatform diagnostics. 2017-01-28 03:25:45 +03:00
Stanislav Erokhin b033ad1b2b Add positioning strategy DECLARATION_NAME for DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE. 2017-01-28 03:25:44 +03:00
Stanislav Erokhin 2aa2df75ae Make property java available on KClass<T> where T is type parameter without upper bounds. 2017-01-28 03:25:43 +03:00
Ilya Chernikov bd47337be2 Using stdlib instead of runtime in the JSR 223 engines 2017-01-27 22:20:45 +01:00
Ilya Chernikov b8b044c6b0 Reuse script args substitution for replacing bindings in JSR 223 sample engines, fixes KT-15450 2017-01-27 22:20:44 +01:00
Ilya Chernikov b86ed0c5d9 Comment out failing test part - temporary, see TODO 2017-01-27 22:20:44 +01:00
Ilya Chernikov 0b689a4ecb PR-1021 review: minor fixes
# Conflicts:
#	compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplCompilingEvaluator.kt
#	compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplEvaluator.kt
#	compiler/cli/src/org/jetbrains/kotlin/cli/jvm/repl/GenericReplCompiler.kt
2017-01-27 22:20:44 +01:00
apatrida 5ad06e1e92 PR-1021: Merge Keplin project scripting code into Kotlin core.
Overhauls the scripting layers (GenericRepl and related, and JSR223 and related)
Adds repeating modes (none, only latest eval'd line, or random order)
Also adds better thread-safe IO capturing, default imports, SimpleRepl wrapper, more unit tests

NOTE: the script-util part of the pull request was rejected due to various problems and incompatibilities.
It may be incorporated into the code later.

(originally cherry picked from commit 6f7d517)
2017-01-27 22:20:44 +01:00
Ilya Chernikov 8caf607378 PR-1021 preparations: prepare files to preserve important history
- Split GenericRepl.kt into separate files
- Rename Repl.kt
2017-01-27 22:20:44 +01:00
mglukhikh 34dd259900 Changelog 1.1.0: issue 15790 removed 2017-01-27 23:40:25 +03:00
Mikhail Glukhikh d8a4a32e9f Do not report UNUSED_PARAMETER in function literal for 1.0 compatibility mode #KT-16010 Fixed 2017-01-27 23:39:08 +03:00
Mikhail Glukhikh 9fdf16e5d7 Quick-fix to add 'suspend' to the receiver of startCoroutine / createCoroutine #KT-15738 Fixed 2017-01-27 23:39:04 +03:00
Mikhail Glukhikh 5f455bbe3a Do not suggest renaming to underscore in 1.0 compatibility mode #KT-16019 Fixed 2017-01-27 23:39:01 +03:00
Mikhail Glukhikh 67e207acb0 Do not suggest destructuring in function literal in 1.0 compatibility mode #KT-15134 Fixed 2017-01-27 23:38:59 +03:00
Mikhail Glukhikh 3cd4d7cbfe Operator to function: rem or mod depending on version #KT-15969 Fixed 2017-01-27 23:38:57 +03:00
Roman Elizarov a1571657f3 Updated test to experimental package 2017-01-27 23:24:13 +03:00
Roman Elizarov 8dc318dd92 Fixed KT-15963 (coroutines machinery should not use equals on results) 2017-01-27 23:24:13 +03:00
Denis Zharkov c362a9154b Rename SUSPENDED_MARKER to COROUTINE_SUSPENDED 2017-01-27 23:24:13 +03:00
Denis Zharkov 246946bc18 Move buildSequence/buildIterator to kotlin.coroutines.experimental 2017-01-27 23:24:13 +03:00
Denis Zharkov 35e9f0a89a Update a test result temporary
Currently common stdlib doesn't contain Continuation interface
2017-01-27 23:24:13 +03:00
Denis Zharkov 68fc6fa217 Support non-CoroutineImpl instances in createCoroutine 2017-01-27 23:24:13 +03:00
Denis Zharkov 463af85f78 Minor. Update light-classes test data after coroutine-related changes 2017-01-27 23:24:13 +03:00
Denis Zharkov 1d5144b168 Move coroutine-related diagnostic tests to run them with stdlib
It's necessary because all coroutine related declarations (Continuation, etc)
are now in the stdlib
2017-01-27 23:24:13 +03:00
Denis Zharkov 8fa8ba7055 Move coroutine-related runtime parts to kotlin.coroutines.experimental package
#KT-15975 Fixed
2017-01-27 23:24:13 +03:00
Denis Zharkov cb4914ab56 Make 'suspendCoroutineOrReturn' inline-only 2017-01-27 23:24:13 +03:00
Denis Zharkov 0e132b9857 Move all coroutine-related declarations from built-ins to stdlib
Also move internal declarations from runtime.jvm module into new package
kotlin.coroutines.jvm.internal in stdlib

The necessity of these declarations being in built-ins is controversial,
but also it will complicate the migration of current coroutine runtime
to a separate jar if we ever need this
2017-01-27 23:24:13 +03:00
Denis Zharkov b61c152b4e Minor. Drop a couple of unused properties 2017-01-27 23:24:13 +03:00
Zalim Bashorov 4a72404ac2 Support a larger set of symbols as module name in "MODULE" directive 2017-01-27 23:15:43 +03:00
Zalim Bashorov 66fd566df0 KJS: fix inlining from modules with non valid identifier name 2017-01-27 23:13:53 +03:00
Zalim Bashorov 487419e762 KJS: don't export inline functions with InlineOnly annotation and inline functions with reified generic parameter 2017-01-27 22:47:10 +03:00
Zalim Bashorov 16405d080d Minor: remove outdated references form jslib_files.xml 2017-01-27 22:47:09 +03:00
Ilya Gorbunov 267703e6b7 Change references to kotlin-stdlib-js.jar in plugin.
Change test projects for js project configurator.
#KT-15940
2017-01-27 22:19:49 +03:00
Ilya Gorbunov 0df31f1223 Build kotlin-stdlib-js.jar in ant
#KT-15940
2017-01-27 22:19:40 +03:00
Ilya Gorbunov d0e917e7f9 Fix maven references to stdlib-js in IDEA project
#KT-15940
2017-01-27 22:19:35 +03:00
Ilya Gorbunov 078f606cdc List artifacts required for maven plugin IT in extraArtifacts rather than in dependencies.
#KT-15940
2017-01-27 22:19:31 +03:00
Ilya Gorbunov ea9be01034 Fix maven references to stdlib-js
#KT-15940
2017-01-27 22:19:26 +03:00
Ilya Gorbunov ba1d7104a3 Rename JS standard library artifact #KT-15940 2017-01-27 22:09:46 +03:00
Simon Ogorodnik 2a08e3c679 KT-14767 typealias to annotation class should appear in the completion list
#KT-14767 fixed
2017-01-27 21:29:23 +03:00
Alexey Andreev 4c831cab9e JS: regenerate stdlib files from IDL 2017-01-27 20:54:43 +03:00
Alexey Andreev 72bcdf8869 JS: add enum emulation to IDL2K 2017-01-27 20:54:43 +03:00
Alexey Andreev 04e9405082 JS: regenerate stdlib files from IDL 2017-01-27 20:54:42 +03:00
Alexey Andreev 68d14de000 JS: add support of Promise<T> in IDL2K 2017-01-27 20:54:42 +03:00
Alexey Andreev 563a3a25cb JS: add Promise class 2017-01-27 20:54:41 +03:00
Mikhail Glukhikh f5d5079b0d 1.1.0 change log update 2017-01-27 20:19:13 +03:00
Alexey Sedunov be3e33051e Kotlin Facet: Fix Gradle import without "module per source set" option
#KT-15812 Fixed
2017-01-27 20:05:01 +03:00
Alexey Sedunov 34b0e175ca Configuration: Prohibit api-version > language-version in Facet and Project Settings
#KT-16015 Fixed
2017-01-27 20:05:00 +03:00
Alexey Tsvetkov 1420bd1b33 Add Kotlin Gradle DSL to configure coroutines from build.gradle 2017-01-27 19:04:49 +03:00
Mikhail Glukhikh 08caf0a011 Object literal to lambda: handle last comment correctly #KT-15670 Fixed 2017-01-27 18:15:56 +03:00
Mikhail Glukhikh c0f5cafbd8 Set type reference: destructuring support #KT-14994 Fixed 2017-01-27 18:15:54 +03:00
Mikhail Glukhikh f4513e9c70 Remove explicit lambda parameter types: destructuring support #KT-15162 Fixed
Also #KT-14993 Fixed
2017-01-27 18:15:52 +03:00