Natalia Selezneva
c4aab8340b
Do not store script definition in psiFile
...
This may cause problems when definitions are reordered or switched off
KT-27375 Fixed
2018-10-15 09:43:49 +03:00
Svyatoslav Kuzmich
02277d0293
[JS IR BE] ExpectDeclarationsRemoving lowering
...
* Copy lowering from konan to common
* Keep actual default parameters when both actual and expect default parameters are present
* Run lowering before inline in JS IR BE to fix
box/multiplatform/defaultArguments/inlineFunctionWithDefaultLambda.kt
2018-10-15 00:03:46 +03:00
Svyatoslav Kuzmich
4c38d55f21
[JS IR BE] Unmute tests
2018-10-15 00:03:45 +03:00
Svyatoslav Kuzmich
5a057f8ca6
[JS IR BE] Support 'is Number' and 'is Comparable<>'
2018-10-14 23:53:03 +03:00
Svyatoslav Kuzmich
783f27c554
[JS IR BE] Support Number.to(Byte|Short|Int|Float|Double|Long)
2018-10-14 23:53:03 +03:00
Svyatoslav Kuzmich
bad9534abd
[JS IR BE] Support integer operation overflow
2018-10-14 23:53:02 +03:00
Zalim Bashorov
8013a56286
[JS IR BE] process empty loops correctly in BlockDecomposerLowering
2018-10-13 01:51:59 +03:00
Zalim Bashorov
6d592ae66b
Unmute tests
2018-10-13 01:51:59 +03:00
Zalim Bashorov
dfc3bda3b4
Minor: remove forgotten "TODO"
2018-10-13 01:51:58 +03:00
Nikolay Krasko
ea9d4037e6
Minor: cleanup KotlinLightCodeInsightFixtureTestCase.kt
2018-10-12 18:50:06 +03:00
Nikolay Krasko
d8fda8b153
Tests for navigation to stdlib multiplatform sources (KT-26004)
...
#KT-26004 Fixed
2018-10-12 18:50:05 +03:00
Nikolay Krasko
e3d930a6a1
Build maven-like stdlib sources artifacts during dist
...
This is needed to emulate gradle and maven like projects in plugin tests.
2018-10-12 18:50:04 +03:00
Nikolay Krasko
ac2bc22f54
Use information from stub for contracts presence
2018-10-12 18:21:39 +03:00
Nikolay Krasko
d3ec145f13
Fixes for ReplaceArraysCopyOfWithCopyOfInspection
...
- Reduce applicability range
- Don't fix reporting level, otherwise it won't be possible to change
it in settings
- Using isCalling utility
2018-10-12 18:21:38 +03:00
kenji tomita
e6de8e9cd3
Inspection to convert Arrays.copyOf(a, size) to a.copyOf(size)
2018-10-12 18:21:36 +03:00
Nikolay Krasko
fc4f7303d3
Disable highlighting for decompiled Kotlin files (KT-27284)
...
#KT-27284 Fixed
2018-10-12 18:21:35 +03:00
victor.petukhov
b86211b434
Add spec tests for integer literals
2018-10-12 17:31:24 +03:00
Natalia Selezneva
4f04d4503a
Highlight files in diff view (KT-17892)
...
KT-17892 Fixed
2018-10-12 15:27:46 +03:00
Natalia Selezneva
db0021718f
Set since-build for Idea 182 and AS 3.3 to 182.4323.46
2018-10-12 15:27:46 +03:00
Natalia Selezneva
605396f9e2
Update idea to 2018.2.3 (182.4323.46)
2018-10-12 15:27:46 +03:00
Natalia Selezneva
6bddf36725
Update as33 branch to AS3.3 canary 12
2018-10-12 15:27:46 +03:00
Natalia Selezneva
3744a00f77
Run Kotlin Scratch in the background cancelable task (KT-25032)
...
KT-25032 Fixed
2018-10-12 15:27:46 +03:00
Natalia Selezneva
00e0f430ac
Add shortcut and menu item for Run Scratch Action (KT-24180)
...
KT-24180 Fixed
2018-10-12 15:27:45 +03:00
Natalia Selezneva
af2235fd1d
Fix compatibility with anko plugin
2018-10-12 15:27:45 +03:00
Natalia Selezneva
c73885142a
Do not access stubs in dumb mode finding script definition
2018-10-12 15:27:45 +03:00
Natalia Selezneva
daa6e9b562
Minor: reformat and rearrange code
2018-10-12 15:27:45 +03:00
Ilmir Usmanov
a5bcd3495e
Simplify tail-call optimisation check
...
Check, that all suspension points are immediately followed by ARETURN
and do not check that all these ARETURNs are immediately preceded by
suspension points.
#KT-27190 Fixed
2018-10-12 15:10:12 +03:00
Vyacheslav Gerasimov
d11fbac511
Build: Use cache-redirector.jetbrains.com to prevent connection timeouts
2018-10-12 14:57:37 +03:00
Yan Zhulanow
a8aab3fbe5
as33: Remove declaration of the KotlinAndroidGradleOrderEnumerationHandler extension from as33 (KT-26975)
...
'idea-android' module is not put into the plugin made for Android Studio 3.3 as it has its own copy of 'idea-android'.
2018-10-12 14:50:53 +03:00
Ilmir Usmanov
e21159c28f
Report suspension point in monitor error on crossinline lambdas
...
#KT-27258: Fixed
2018-10-12 14:21:42 +03:00
Zalim Bashorov
3f0bd20235
Add an ability to run/debug ir tests inside node.js (even from IDEA)
2018-10-12 13:57:03 +03:00
Mikhail Zarechenskiy
b7d7d1eb01
Fix inline class type coercion in == with generic call
...
#KT-27393 Fixed
2018-10-12 12:50:49 +03:00
Mikhail Zarechenskiy
0201694f84
Propagate KotlinType into create method for coroutines
...
#KT-27526 Fixed
2018-10-12 12:50:47 +03:00
Mikhail Zarechenskiy
a8abd8cceb
Fix boxing/unboxing for generic functions on index expressions
...
Unsubstituted type should be used for coercion to box value of
inline class type if it's needed. For the substituted value it's not
known if it was a generic parameter or not.
#KT-27502 Fixed
2018-10-12 11:58:56 +03:00
Nikolay Krasko
882a12d916
Exit if it's impossible to create file during copy/past (KT-26210)
...
#KT-26210 Fixed
2018-10-12 11:48:49 +03:00
Toshiaki Kameyama
749fd5dd80
"Convert property to function" intention: don't suggest if property has @JvmField annotation #KT-27157 Fixed
2018-10-11 21:01:27 +03:00
Toshiaki Kameyama
487b1e96be
"Introduce backing property" intention: don't suggest if property has @JvmField annotation #KT-27156 Fixed
2018-10-11 21:00:44 +03:00
Toshiaki Kameyama
ca335880eb
"Convert property initializer to getter" intention: don't suggest if property has @JvmField annotation #KT-27139 Fixed
2018-10-11 20:59:33 +03:00
Toshiaki Kameyama
3866c85a34
Add accessor intention: don't suggest if property has @JvmField annotation #KT-27139 Fixed
2018-10-11 20:59:33 +03:00
Ilya Gorbunov
27dc160aef
Rename Random companion object to Default
...
#KT-27508
2018-10-11 19:06:12 +03:00
Sergey Igushkin
81b4031a35
Remove internal Gradle API usage for stale output cleanup
...
BuildOutputCleanupRegistry tracks the all of the outputs that belong to
the Gradle build, so when Gradle runs in an unknown state (e.g. without
any history), it can detect stale outputs in the output directories and
delete them.
Since this is an internal API, its usage is removed. Instead, another
way to tell Gradle that a set of directories belongs to the build is to
add them to the `delete` task targets.
2018-10-11 19:01:53 +03:00
Sergey Igushkin
a0f4d5a637
Get rid of FileCollectionInternal usage that breaks with Gradle 5.0+
...
Remove the implementation of the `FileCollectionInternal` interface in
`KotlinCompilationOutput`. This interface may change unexpectedly (and
does between Gradle 4.10 and 5.0) so we need to get rid of its
implementation.
On the other hand, we can't just implement `FileCollection` instead
because Gradle internally assumes that all `FileCollection` instances
are also `FileCollectionInternal`. So the way to fix this is to remove
`SourceSetOutput` from superinterfaces of `KotlinCompilationOutput`
altogether.
Instead, to work with `SourceSetOutput` and `KotlinCompilationOutput`
in a uniform way, provide a wrapper for `SourceSetOutput`:
`KotlinWithJavaCompilationOutput` that is basically a proxy
class.
2018-10-11 19:01:52 +03:00
Alexey Sedunov
174fd41564
Rename: Restore project scope (fixing failing tests)
...
It fixes search of usages for some cases where element's useScope()
is not enough (like parameter references in named arguments)
2018-10-11 17:56:27 +03:00
Alexey Sedunov
84d9f8250c
Configuration: Ensure facet UI is initialized in apply() call
...
#KT-27187 Fixed
2018-10-11 17:56:27 +03:00
Alexey Sedunov
3fcf6e7719
Change Signature: Clear callback after the call
...
Retaining the callback leads to the leak of obsolete resolve data
2018-10-11 17:56:27 +03:00
Alexey Sedunov
c3af3cc482
Configuration: Do not use read action during conpiler settings loading
...
It may lead to deadlock (see KT-27298)
#KT-27298 Fixed
2018-10-11 17:56:27 +03:00
Alexey Sedunov
26d77183df
Misc: Update repository URLs in importer test data
2018-10-11 17:56:27 +03:00
Alexey Sedunov
7553fd2766
Misc: Disable some tests for recent Gradle versions
...
Old-style MPP doesn't work there due to ExternalProject not being built
2018-10-11 17:56:26 +03:00
Toshiaki Kameyama
061aa63a73
"Make private" intention: fix some false positive cases
2018-10-11 17:20:46 +03:00
Mikhail Glukhikh
7488056249
Use 'canBeInternal' in ChangeVisibilityFix (related to KT-27138)
2018-10-11 17:20:30 +03:00