Mikhail Glukhikh
927b94a6e0
Regenerate FIR test
2019-01-11 15:14:14 +03:00
Mikhail Zarechenskiy
6361df28fe
Fix dependency for Gradle integration tests module
...
After d5ebe2e6
2019-01-11 14:47:11 +03:00
Sergey Rostov
75e59fdc46
JPS: exclude source roots from other targets
...
Previously `findJavaRootDescriptor` was return source root for random
module. This cause build errors for mpp (same file may appear in
multiple source roots of common and platform modules)
#KT-28988 Fixed
2019-01-11 12:53:11 +03:00
Dmitry Savvinov
8a0057b387
Introduce specific version of NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY for KT-28061
...
In 1.3.0 there was introduced KT-28061 bug, which caused some of the
NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY diagnostics to be lost (turning
"red" code into "green")
500dc11514 fixes the bug and returns
lost diagnostics back. This commit adds additional information for some
of the cases where diagnostics were list and then brought back (for the
user sanity).
The heuristic used for detecting cases which need additional information
is simple: if function has return in in-place called lambda, and
NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY should be reported, then we
enhance it with additional information.
^KT-28061 Fixed
2019-01-11 11:44:39 +03:00
Mikhail Glukhikh
4fd773a38b
IDEA plugin: remove "Show FIR action" and fir-view without fir.enabled
...
#KT-28813 Fixed
(it's planned to include FIR in artifacts after 1.3.30)
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
f0c9a3daa2
FIR: add default simple importing scope to support kotlin.ByteArray etc
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
6e369e156d
FIR: implements multi-module resolve, add tests #KT-24093 Fixed
...
This commit introduces FIR session provider, dependency provider,
library session + other infrastructure necessary for multi-module resolve
2019-01-11 09:55:40 +03:00
Mikhail Glukhikh
bc82f2f940
Use FirModuleBasedSession with module info, use platform default imports
...
In this commit, FIR sessions made bound to a particular module
2019-01-11 09:55:40 +03:00
Ilya Matveev
9ca07bc706
Fix linkTaskName getters of K/N compilations
2019-01-11 13:21:46 +07:00
Ilya Matveev
5eea0145b3
Support getting the default K/N test binary from a compilation
...
Fix for https://github.com/JetBrains/kotlin-native/issues/2487
2019-01-11 13:21:46 +07:00
Mikhail Zarechenskiy
d5ebe2e66a
Reorganize dependencies around kotlin-compiler.jar
...
#KT-26807 Fixed
2019-01-11 00:14:23 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Dmitry Petrov
b878626919
Intrinsify 'in' with unsigned ranges
2019-01-10 17:17:51 +03:00
Dmitry Petrov
e6e0e9976c
Tests for for-in optimization with unsigned ranges
2019-01-10 17:17:51 +03:00
Dmitry Petrov
a2c618366b
Tests for loops with possible index variable overflow
2019-01-10 17:17:51 +03:00
Dmitry Petrov
54cba32426
Support unsigned range and progression values in range intrinsics
2019-01-10 17:17:51 +03:00
Dmitry Petrov
68e2d8dcd9
Support unsigned integers in intrinsic range values
2019-01-10 17:17:51 +03:00
Dmitry Petrov
d22a31cb90
Use elementKotlinType in primitive number range intrinsics
2019-01-10 17:17:51 +03:00
Dmitry Petrov
5ae8df4d88
Use ComparisonGenerator for range element type in counter loops
2019-01-10 17:17:51 +03:00
Dmitry Petrov
4e48ce02f1
Minor: move RangeCodegenUtil to range package
2019-01-10 17:17:51 +03:00
Dmitry Petrov
fc94254320
Minor: refactor getRangeOrProgressionElementType + reformat
2019-01-10 17:17:51 +03:00
Dmitry Petrov
6414abb277
Minor: reformat & optimize imports
2019-01-10 17:17:51 +03:00
Igor Chevdar
e640f01b4e
Fixed bug with IR parameter copying.
...
Constructors don't have their own type parameters
but rather inherit them from the parent.
2019-01-10 14:35:11 +03:00
Igor Chevdar
1bef26c80e
[JS IR] Fixed bug with constructors type parameters
2019-01-10 14:35:11 +03:00
Igor Chevdar
5afa44edea
Added a coroutine test
2019-01-10 14:35:11 +03:00
Igor Chevdar
1eaf2d2c42
Typo fix
2019-01-10 14:35:11 +03:00
Igor Chevdar
2c0f93b133
IR: Supported special coroutine intrinsic
...
See https://youtrack.jetbrains.com/issue/KT-26317 for details
2019-01-10 14:35:11 +03:00
Igor Chevdar
621a9bd1df
Removed a Native specific lowering
2019-01-10 14:35:10 +03:00
Igor Chevdar
9fee03ca81
IR: Fixed some parents
2019-01-10 14:35:10 +03:00
Igor Chevdar
a78b80f8bf
IR fixes to help symbolization of K/N
2019-01-10 14:35:10 +03:00
Roman Artemev
d363763420
Fix wrapped descriptors
2019-01-10 14:35:10 +03:00
Denis Zharkov
2b40ecfd29
Fix exception in ultra-light classes in case of complex mpp hierarchy
...
Without the introduced override, default implementation of isEquivalentTo
runs delegate computation of `another` that is illegal
for KtUltraLightClass
^KT-28912 Fixed
2019-01-10 14:11:20 +03:00
denisgaebler
be881442da
One more fix for MinGW path in K/N runner
2019-01-10 17:29:34 +07:00
Ilya Chernikov
02f2c941c8
Add import support to main-kts, with test
2019-01-10 10:59:32 +01:00
Ilya Chernikov
4571e273a4
Add shared script instances support, fix and refactor evaluation accordingly
...
also fix arguments order in the evaluator
2019-01-10 10:59:32 +01:00
Ilya Chernikov
7bb4233e17
Add mapping function for transformations with ResultsWithDiagnostics
...
also improve chaining helpers
2019-01-10 10:59:32 +01:00
Ilya Chernikov
01f2a21192
[minor] add comment to the "Fix locking in script definition provider" commit
2019-01-10 10:59:32 +01:00
Ilya Chernikov
e5febddaf7
[minor] fix scripting test on windows
2019-01-10 10:59:32 +01:00
denisgaebler
1ca2e4fdba
Update JavaSdkUtil.java
...
Added path for IBM JDK on platform z/OS
2019-01-10 12:46:05 +03:00
Anton Yalyshev
c809cfd800
Merge branch 'rr/ayalyshev/KT-29062'
2019-01-10 12:05:53 +03:00
Mikhail Glukhikh
7095182e2d
FIR: support suspend functions #KT-24084 Fixed
2019-01-10 10:51:28 +03:00
Mikhail Glukhikh
7aba441234
FIR tree: support const expressions (adds IR dependency) #KT-24023 Fixed
...
Also support generic tree elements in FIR visitor generator
2019-01-10 10:51:08 +03:00
Mikhail Glukhikh
18ea86cfb4
Remove parentheses: add semicolon before lambda if necessary
...
In 2010b175 , it was suggested just not to suggest parentheses removal.
However, it contradicts with behaviour of "Replace contains" which
adds semicolon before lambda in this case. So in this commit I made
behaviour of remove parentheses the same.
This commit reverts production part of 2010b175
Fixes failing test of "replace contains"
2019-01-10 10:45:46 +03:00
Sergey Rostov
62222460b6
JPS build, workarounds for idea importing: fix runtime classpath
2019-01-10 08:50:41 +03:00
Sergey Rostov
5cda676c9f
JPS: Print components of CacheVersion, add tests
2019-01-10 08:50:39 +03:00
Sergey Rostov
b3985d2735
JPS: remove cache version from test data
2019-01-10 08:50:38 +03:00
Andrey Uskov
b6aed5b98a
Change task creation with task registration in Kotlin plugin
...
#KT-27657 Fixed
2019-01-10 01:41:21 +03:00
Yan Zhulanow
7d660834e1
Fix 'CommandLineProcessor' extension point calling, switch it to using ServiceLoaderLite
2019-01-09 21:54:52 +03:00
Yan Zhulanow
34818b0bbe
Remove JPS support for Android Extensions
2019-01-09 21:54:52 +03:00
Alexander Udalov
cca6ba38be
Add tests for obsolete codegen issues
...
#KT-16790 Obsolete
#KT-16858 Obsolete
#KT-17441 Obsolete
2019-01-09 19:18:54 +01:00