Toshiaki Kameyama
4c62788c3e
Make "Add operator modifier" an inspection instead of intention
...
#KT-31533 Fixed
2019-06-05 19:27:52 +07:00
Yan Zhulanow
bc6f01805e
Fix JVM test running in MPP projects (KT-30814)
2019-06-04 17:56:05 +09:00
Mikhail Zarechenskiy
6d3a7102d5
Fix evaluation of local functions for new-inference
...
Plus, additionally fix evaluation of generic local functions everywhere
The problem was that in new-inference we create more substituted
descriptors while old inference tries to preserve original ones.
Later, backend fails to retrieve those descriptors as it uses originals.
But, again, this worked only for simple functions, for generic functions
debugger with new and old inference worked incorrectly
#KT-31785 Fixed
2019-06-04 11:07:50 +03:00
Dmitry Gridin
7bc2fcd657
Convert RemoveCurlyBracesFromTemplateIntention to inspection
...
Relates to #KT-31717
2019-06-03 16:37:37 +07:00
Dmitry Savvinov
8caafa874e
Advance Kotlin versions in some Gradle Tests
...
Those versions have been resolved from -dev repository, which got
cleared and those tests started to fail.
In long term, it would be nice to not use fixed Kotlin versions in
tests, but for now we just advance it to prevent tests from failing.
2019-06-03 08:17:25 +03:00
Dmitry Gridin
21c10af1a7
Fix tests in quickfix
2019-05-31 18:00:56 +07:00
Dmitry Gridin
605ee041a9
Remove CreateTypeAliasFromUsageFix
...
Relates to #KT-31519
2019-05-31 18:00:56 +07:00
Ilya Kirillov
8fa9b9923f
Allow removing trivial property accessor body when the accessor can not be fully deleted in redundant getter/setter inspections
2019-05-31 00:25:52 +03:00
Yan Zhulanow
b48e0a89c5
Debugger: Hide synthetic '$completion' variable in Kotlin variables mode
2019-05-30 15:27:11 +09:00
Yan Zhulanow
bfb1d53ddf
Debugger: Run control flow on code fragments (KT-30120)
2019-05-30 15:27:11 +09:00
Yan Zhulanow
35c63db9bc
Debugger: Support coroutineContext for suspend functions without suspend calls (KT-24829)
2019-05-30 15:27:11 +09:00
Yan Zhulanow
999d5ce3bb
Debugger: Fix VariableAsFunctionResolvedCall evaluation
2019-05-30 15:27:10 +09:00
Yan Zhulanow
0a6a811c57
Debugger: Fix lvalue evaluation (KT-11663, KT-19980)
2019-05-30 15:27:10 +09:00
Yan Zhulanow
bb0bc8a38a
Debugger: Fix toTypedArray() evaluation (KT-8579)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
9ae8a8abf1
Debugger: Fix method evaluation on arrays (KT-11706)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
38dba20e24
Debugger: Allow super calls (KT-20560)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
cbbb3c35da
Debugger: Fix evaluation for local extension functions (KT-13188)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
ee0daae2ab
Debugger: Support synchronized blocks and functions in evaluator (KT-11888)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
55bbcc4601
Generate line numbers for closing '}' in 'init {}' blocks (KT-12787)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
a385b4d9d0
Debugger: Fix evaluation on value parameter name position (KT-30976)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
577b3e096f
Debugger: Fix test (lines were changed because of the updated copyright)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
ae7550c5af
Move out JVM debugger functionality
2019-05-30 15:27:07 +09:00
Toshiaki Kameyama
65f06454be
Add "Control flow with empty body" inspection
...
#KT-30970 Fixed
2019-05-29 18:04:24 +07:00
Dmitry Gridin
1c4fb9b00b
ConstantConditionIfInspection.replaceWithBranch shouldn't remove subjectVariable with side effects
...
Relates to #KT-30975
2019-05-29 15:40:10 +07:00
Dmitry Gridin
e2d5e9a184
Only when keyword should be highlighted in WhenWithOnlyElseInspection
...
#KT-31673 Fixed
2019-05-29 15:40:10 +07:00
Toshiaki Kameyama
e955dcfc14
WhenWithOnlyElse: don't remove when subject variable if needed
...
#KT-30975 Fixed
2019-05-29 15:40:10 +07:00
Dmitry Gridin
f5796a303d
Fix tests
...
Relates to #KT-30622
2019-05-29 11:00:28 +07:00
Dmitry Gridin
8988b4b344
Convert ReplaceSubstringIntention to ReplaceSubstringInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
2310826ec9
Remove MergeWhenIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
41daf99346
Remove IfThenToDoubleBangIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
afcb2f3436
Remove ConvertIfWithThrowToAssertIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
d3339cae46
Merge ReplaceMathMaxWithCoerceAtLeastIntention & ReplaceMathMinWithCoerceAtMostIntention with ReplaceJavaStaticMethodWithKotlinAnalogInspection
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
26478b1374
Remove ConvertTrimMarginToTrimIndentIntention
...
Relates to #KT-31502
2019-05-29 11:00:28 +07:00
Dmitry Gridin
0b9b49d7bc
Remove ConvertTrimIndentToTrimMarginIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
91e9ed25f7
Remove ConvertNegatedBooleanSequenceIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
dd03a81309
Remove ConvertClassToSealedClassIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Dmitry Gridin
1adc2ae4c8
Remove ConvertAssertToIfWithThrowIntention
...
Relates to #KT-31502
2019-05-29 11:00:27 +07:00
Mikhail Glukhikh
806d2d628c
FIR Java: correctly handle overridden Kotlin properties in use-site scope
2019-05-28 10:20:41 +03:00
Mikhail Glukhikh
56435fa283
FIR Java: add default constructors
2019-05-28 10:20:40 +03:00
Mikhail Glukhikh
d0404b2c2a
FIR resolve: check number of parameters when handling Java accessors
2019-05-28 10:20:38 +03:00
Dmitry Gridin
76c2c2a5e9
Allow "Add val/var to primary constructor parameter" for inline & annotation classes
...
Relates to #KT-29731
2019-05-24 15:55:01 +07:00
Dmitry Gridin
f2bd58c030
Expand "Create expected..." also to a members if an expect class doesn't exist
...
#KT-31272 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
47e3a26749
Fix "Create expect function" for primary constructor
...
#KT-31518 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
b575ed390a
Add a dialog to select members for export in expect class
...
#KT-31476 Fixed
#KT-31446 Fixed
#KT-31033 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
1097bc76af
Don't suggest Add val/var to parameter at expect class constructor
...
#KT-29731 Fixed
2019-05-24 15:55:01 +07:00
Dmitry Gridin
98a4c4588e
Don't suggest might be const on actual member declaration
...
#KT-27822 Fixed
2019-05-24 15:55:00 +07:00
Nikolay Krasko
78569c62c0
Additional test for multiple comments in copyright updater
2019-05-23 16:25:09 +03:00
Nikolay Krasko
136cbd195b
Fix copyright updater in scripts (KT-30133)
...
#KT-30133 Fixed
2019-05-23 16:25:09 +03:00
Nikolay Krasko
aa01328d13
Add tests for copyright updater
2019-05-23 16:25:08 +03:00
Toshiaki Kameyama
3bca1a50e3
Move variable declaration into when: fix comment place
...
#KT-31362 Fixed
2019-05-23 19:01:24 +07:00