Mikhail Glukhikh
ca3d758fba
Create expect/actual class: fix inline class generation
...
#KT-28744 Fixed
#KT-28745 Fixed
2018-12-19 19:55:56 +03:00
Mikhail Glukhikh
8f821c9ef5
Merge pull request #2033 from t-kameyama/KT-28699
...
KT-28699 Add "Convert to also" intention
2018-12-18 09:37:34 +03:00
Toshiaki Kameyama
f2cf3a8e7b
Replace with binary operator: don't suggest for non-operator function
...
#KT-12273 Fixed
2018-12-18 09:30:38 +03:00
Toshiaki Kameyama
ea0f9d124d
Split property declaration: don't add parentheses for anonymous function
...
#KT-7593 Fixed
2018-12-18 09:28:57 +03:00
Toshiaki Kameyama
6a4c6eacd7
Add "Convert to also" intention
...
#KT-28699 Fixed
2018-12-18 12:21:56 +09:00
Nikolay Krasko
0482fe9414
Move check with selection tags to base check
2018-12-13 12:36:02 +03:00
shiraji
06dad5f45b
Surround with try/catch should generate more Kotlin-style code (KT-5435)
...
#KT-5435 Fixed
2018-12-13 12:36:02 +03:00
Nikolay Krasko
5fb90a8a81
Better caret position after Insert curly braces around variable (KT-28739)
...
Introduce helper class and move caret to it's original position.
#KT-28739 Fixed
2018-12-13 12:36:01 +03:00
Mikhail Glukhikh
a15b47c93c
Add "Ambiguous context due to scope receiver in suspend fun" inspection
...
#KT-28696 Fixed
2018-12-12 17:10:37 +03:00
Mikhail Glukhikh
13b09f532c
Boolean literal arguments: check previous arg, fix all args in a row
2018-12-12 15:56:12 +03:00
Mikhail Glukhikh
d31e0b9632
Boolean literal arguments: don't report on a call, just on an element
2018-12-12 15:56:12 +03:00
Toshiaki Kameyama
0d7116aa5d
Introduce "Boolean literal arguments" inspection #KT-2029 Fixed
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
aa9e48b9b6
Augmented list assignment inspection: add "replace with ordinary" fix
...
Relates to KT-20626
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
ed8305995e
Don't highlight "replace with +=" for read-only collections
...
Related to KT-20626
2018-12-12 15:56:11 +03:00
Mikhail Glukhikh
c560aada3d
Add "Suspicious collection reassignment" inspection #KT-20626 Fixed
2018-12-12 15:56:11 +03:00
Yan Zhulanow
ef08110354
Evaluator: Render inline class values using its toString() implementation (KT-27414)
2018-12-12 21:40:46 +09:00
Yan Zhulanow
eb28ce3007
Fix Android Lint tests (182 bunch only)
2018-12-12 21:40:45 +09:00
Yan Zhulanow
f5bb9d5866
Remove Lint tests for annotation argument API check.
...
Looks like newer Lint API checker ignores type usage in annotations, so these tests are no more needed.
2018-12-12 21:40:45 +09:00
Yan Zhulanow
aa5f1cefd0
Fix testSimple() for "Remove Parcelable" action
2018-12-12 21:40:45 +09:00
Yan Zhulanow
9ec321b918
Update debugger test data, fix the current behavior
2018-12-12 21:40:45 +09:00
Yan Zhulanow
e6643ef2b7
Fix quick evaluation for array expressions (KT-13268)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
4b4d8dd660
Fix breakpoints for the same inline function nested calls (KT-22366)
...
This commit changes the format of the synthetic local variables for inline functions.
2018-12-12 21:40:44 +09:00
Yan Zhulanow
e12af0e2d1
Fix evaluation for captured inline classes (KT-28487)
2018-12-12 21:40:44 +09:00
Yan Zhulanow
27ea02929a
Fix evaluation for static interface methods declared in Java (KT-23585)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
3d7b503cd6
Fix source mapping for stepping into package facades from libraries (KT-28028)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
c88d8a5e0d
Evaluate: Support synthetic 'field' variable evaluation (KT-28342)
2018-12-12 21:40:43 +09:00
Yan Zhulanow
ada71ce3cd
Evaluate: Use '<name>_field' syntax for field value evaluation (KT-14075)
2018-12-12 21:40:42 +09:00
Mikhail Glukhikh
b143a1c8f7
For each parameter not used: handle char sequences correctly
...
An enhancement for KT-27209
2018-12-11 16:42:04 +03:00
Mikhail Glukhikh
11909a86a8
For each parameter not used: introduce "replace with repeat"
...
An enhancement for KT-27209
2018-12-11 16:42:03 +03:00
Mikhail Glukhikh
9aa1d1495b
Redundant arrow: don't report on forEach call with underscore
...
#KT-27209 Fixed
2018-12-11 16:42:03 +03:00
Mikhail Glukhikh
c8c485d27e
Redundant arrow: support removing of 'it ->' #KT-28631 Fixed
2018-12-11 16:42:03 +03:00
Simon Ogorodnik
33f937c923
Remove property with @JvmDefault to make test pass
...
In sake of #KT-28708
2018-12-10 16:08:54 +03:00
Simon Ogorodnik
2165cfe91d
JavaAgainstKotlinBinaries: Allow specifying extra compiler options
2018-12-10 16:08:53 +03:00
Toshiaki Kameyama
07ffac72cf
Assign backing field: don't add empty line
...
#KT-28694 Fixed
2018-12-10 12:06:55 +03:00
Nikolay Krasko
2373c9d838
Allow underscore in packages and forbid uppercase letters (KT-27900)
2018-12-07 18:32:09 +03:00
Nikolay Krasko
e0d3abc819
Do not indent and align initializer list in enums (KT-28070)
...
#KT-28070 Fixed
2018-12-07 18:32:07 +03:00
Nikita Katkov
297054037c
Dispatchers IO is now considered non-blocking context
...
See BlockingMethodInNonBlockingContextInspection
2018-12-07 15:19:12 +03:00
Vyacheslav Gerasimov
d84c5b1608
Switch to 183 platform
2018-12-06 20:16:58 +03:00
Toshiaki Kameyama
5aa0b7d2aa
Extend Selection: whole literal with braces is selected after parameters (KT-13420)
...
#KT-13420 Fixed
2018-12-06 19:48:04 +03:00
Mikhail Glukhikh
de33905c44
Fix formatting in "simplify call chain" #KT-28576 Fixed
2018-12-06 15:37:47 +03:00
Mikhail Glukhikh
a3909d8e47
Refactor code in "simplify call chain" (relates to KT-28576)
2018-12-06 15:37:47 +03:00
Toshiaki Kameyama
9ee9965c7a
Convrt anonymous function to lambda: fix incorrectly conversion
...
#KT-28618
2018-12-06 09:28:56 +03:00
Toshiaki Kameyama
f6323cdee4
Replace assert boolean with assert equality: add import statement
...
#KT-28540 Fixed
2018-12-06 09:27:35 +03:00
Ilya Chernikov
6e27bc0fb3
Fix scratch testdata after introducing result vals into repl
2018-12-05 16:02:31 +01:00
Denis Zharkov
d7d0407afb
Fix parameters nullability for generated overloads in light classes
...
When making KtLightNullabilityAnnotation after test org.jetbrains.kotlin.idea.caches.resolve.IdeLightClassTestGenerated.NullabilityAnnotations#testJvmOverloads
started failing the wrong assumption was made that for
@JvmOverloads-generated overloads their last parameter is always nullable
(see removed isNullableInJvmOverloads function) and that lead to a bug,
namely KT-28556.
The actual problem of this test started failing was incorrect definition
of kotlinOrigin in KtLightParameter for case of JvmOverloads:
wrong KtParameter was being chosen before
This commit fixes the issue by propagating how actually generated
parameters in codegen relate to source KtParameters'
^KT-28556 Fixed
2018-12-05 16:34:44 +03:00
Toshiaki Kameyama
7bf51f1533
Expand selection for class members #KT-28289 Fixed
2018-12-04 11:17:27 +03:00
Mikhail Glukhikh
7cbc8e8b76
Introduce "Redundant else in if" inspection #KT-19668 Fixed
2018-12-03 09:39:22 +03:00
Mikhail Glukhikh
ca87e53f04
Introduce DeferredIsResultInspection #KT-25620 Fixed
2018-12-01 11:07:02 +03:00
Mikhail Glukhikh
a7ad1113b2
Redundant async: do not suggest for calls with 'start'
...
The reason with 'withContext' does not have such parameter anymore
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
3d15cbcced
Redundant async inspection: run "optimize imports" after quick-fix
2018-11-30 15:14:27 +03:00