Mikhail Glukhikh
ada7287c66
Refactoring: make "replace call with binary operator" an inspection
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
6d4b5bc48f
Refactoring: "introduce when subject" is now an inspection
2017-12-26 18:39:48 +03:00
Mikhail Glukhikh
a8b01a6b00
Refactoring: make "if-then to safe access" an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
91bcfb97c6
Refactoring: make "replace get or set" an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
756cb32eaf
Refactoring: make "replace array equality ..." an inspection
2017-12-26 18:39:47 +03:00
Mikhail Glukhikh
33d94cd5e1
J2kPostProcessing: add inspection-based processing #KT-21635 Fixed
2017-12-26 18:39:46 +03:00
Mikhail Glukhikh
67b78bce39
Introduce AbstractApplicabilityBasedInspection
...
Related to KT-21635, KT-21137
2017-12-26 18:39:46 +03:00
Nikolay Krasko
bf393505a9
More nullability update in selectors for compatibility in 181
2017-12-26 17:37:38 +03:00
Nikolay Krasko
e66e8bcd07
Use platform types to prepare for nullability check in 181
2017-12-26 17:08:11 +03:00
Joscha Alisch
809cc220ed
Select lambda after other args when it's outside argument list (KT-21214)
...
#KT-21214 Fixed
2017-12-26 13:09:17 +03:00
Nikolay Krasko
976a158ce1
Support alternative source popup for Kotlin files (KT-21958)
...
#KT-21958 Fixed
2017-12-26 12:49:27 +03:00
Nikolay Krasko
449fee74e8
Skip all same line locations when stepping over inline call (KT-20351)
...
#KT-20351
2017-12-26 12:46:45 +03:00
Nikolay Krasko
f39250c9a2
Fix irrelevant additional stops on breakpoint on line with inlines (KT-21945)
...
#KT-21945 Fixed
2017-12-26 12:46:45 +03:00
Nikolay Krasko
f38a4f509d
Minor: code rearrange
2017-12-26 12:46:45 +03:00
Nikolay Krasko
c5886bc7a2
Remove sleep() from soSuspendableCallInEndOfFun and guarantee suspending
2017-12-26 12:46:45 +03:00
Ilya Gorbunov
10639eaf6a
Add pattern and options properties to common Regex
...
And add a test that accesses them and checks they work as expected.
2017-12-26 05:40:37 +03:00
Ilya Gorbunov
d9edc5f221
Replace Regex constructor-like functions with secondary constructors
...
Historically secondary constructors were not supported in Kotlin/JS, so they had to
be emulated with constructor-like top level functions, now they can be rewritten
as true secondary constructors.
#KT-22003 Fixed
2017-12-26 05:40:35 +03:00
Ilya Gorbunov
053f3b6ac0
Tests: use helper function to assert compile-time and run-time type check
...
To cleanup warnings about useless cast or type check that is always true.
2017-12-26 04:55:44 +03:00
Ilya Gorbunov
ecd42f14b3
Compile common stdlib tests against common stdlib
...
Declare platform-specific test utilities as expect.
2017-12-26 04:55:40 +03:00
Pavel V. Talanov
c030a047aa
Fix getting ModuleResolver by element for script files
...
Fixes EA-105435 (some isntances)
JavaResolveExtension: refactor API
2017-12-25 20:12:51 +03:00
Pavel V. Talanov
2af0bf4c71
Drop JsProjectDetector
...
It leads to undesired behaviour
such as returning library source when only binaries are queried
It is redundant since js libraries do not include kotlin source files
(real binary format is used for this purpose for along time now)
2017-12-25 20:12:48 +03:00
Pavel V. Talanov
6551ee5403
Test completion in script files
...
Test for 'JavaResolutionUtils.getJavaDescriptorResolver' failing with AE
Tests ebd3ac6dc8
See EA-105435
2017-12-25 20:12:46 +03:00
Sergey Igushkin
149b197b24
Fix unconditional warning in JS compilation with sourceMap disabled.
2017-12-25 15:30:01 +03:00
Sergey Igushkin
66d3c94193
Fix both moduleFile and destination passed to the compiler
...
when it is run not in daemon from Gradle; don't pass the destination in
such case.
Issue #KT-21637 Fixed
2017-12-25 15:29:34 +03:00
Sergey Igushkin
00d7150944
Fix warning check in tests:
...
* Fix the regex that could not actually find warnings
* Suppress an unused parameter warning in the test project
* Add allWarningsAsErrors to ExecutionStrategyIT
2017-12-25 15:28:33 +03:00
Sergey Igushkin
41086f26ae
Fix duplicate classpath entry in JS Gradle compilation causing warnings
...
Issue #KT-21943 Fixed
2017-12-25 15:15:54 +03:00
Nikolay Krasko
93e7e9b28c
Minor: regenerate tests
2017-12-22 17:06:12 +03:00
Alexey Tsvetkov
d7edbb8dfc
Track changes in inline function when friend paths are disabled in JS
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
a4d122478b
Replace testCancelLongKotlinCompilation with less flaky test
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
ee94a64718
Explicitly request rebuild when untracked java file is removed
...
Previously a rebuild was happenning because FileNotFoundException
was thrown when getting psiFile of removed file.
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
61cb39a600
Include tests from incremental-compilation-impl in compiler tests
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
50bf74b909
Turn off class redeclaration test for JS IC temporarily
...
So the tests could be run on TC.
Turn on after KT-19846 is fixed.
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
5b646ba4fa
Generate source maps in JS IC tests
...
#KT-21700 fixed
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
0fee7883ed
Recompile only files from last iteration after compile error
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
3914c1b0e9
Allow to edit non-JPS build logs in "Show difference" window for non-JPS IC tests
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
ff2e3ecfc4
Add JS specific IC build log in test
...
JS IC compares proto using a source file path as a key,
so moving file causes recompilation of its usages
unlike JVM IC that uses a class file path as a key.
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
7712044146
Fix IC test build log diverged from JPS
...
JPS marks dirty direct usages of removed classes since 172.* before a build.
Generic IC also marks dirty all subclasses and their usages.
That is necessary because a method from a removed class could be used
through a subclass.
JPS and generic IC logs diverged in 172 branch, but non-JPS tests
were not run on CI.
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
ad1978940b
Recompile inline function usages in JS when offset is changed
...
Otherwise source maps would differ after rebuild
2017-12-22 16:12:20 +03:00
Alexey Tsvetkov
a31f503fa5
Recompile all subclasses of removed classes
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
e8162cd99d
Unify processing of removed files for JS and JVM IC
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
d0ca0dca2b
Avoid processing incremental changes after first build for JVM
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
91bb57c5a3
Make general IC logs similar to JPS IC logs
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
fec2d08d22
Compile actual and expected declarations together
...
#KT-20840 fixed
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
123fd64a34
Fix stdlib usages in IC tests
...
* Use stdlib from dist
* Check that stdlib exists
* Don't add stdlib for JS, because compiler adds one by default
(stdlib would be read twice which is slow)
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
e3a9ad5a74
Minor: remove unused variable
2017-12-22 16:12:19 +03:00
Alexey Tsvetkov
dfe176efca
Avoid computing source files changes in IC for Gradle
2017-12-22 16:12:19 +03:00
Nikolay Krasko
5a8c0f8f42
Minor: fix compile error in test data
2017-12-22 15:27:11 +03:00
Toshiaki Kameyama
9fad40b586
KT-21928 Structure view doesn't show default constructor
2017-12-22 15:27:10 +03:00
Dmitry Jemerov
3178dee759
Insert line break before elvis when converting if to elvis
...
This ensures correct indentation
2017-12-22 10:35:23 +01:00
Dmitry Jemerov
6208c69c72
Add option for wrapping closing paren in multiline if conditions
2017-12-22 10:35:23 +01:00