Dmitry Gridin
09b58403b9
Improve "ReplaceWith" for class with generic parameter
...
#KT-27089 Fixed
2019-03-29 22:35:03 +07:00
Dmitry Gridin
88b0db6dd7
ReplaceWith intention could save generic type arguments
...
#KT-21195 Fixed
2019-03-29 22:35:03 +07:00
Mikhail Glukhikh
c084eefb65
Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
...
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00
Dmitry Gridin
147521d6cb
Add intention to introduce import alias
...
#KT-16118 Fixed
#KT-30007 Fixed
2019-02-21 12:25:09 +03:00
Toshiaki Kameyama
8089d2e9e3
Replace deprecated symbol usage in whole project: enable on annotation declared without parentheses #KT-12479 Fixed
2018-11-16 13:07:36 +03:00
Nikolay Krasko
0833f23d02
Make ReplaceWith work for objects (KT-16211, KT-14929)
...
#KT-16211 Fixed
2018-09-26 13:35:35 +03:00
Mikhail Glukhikh
3014c3b33b
Add new error from 1.3 into testIncorrectArgs thus fixing it
2018-09-18 11:50:36 +03:00
Mikhail Glukhikh
76d1d6ff12
Allow to move suspend lambda out of parentheses
...
#KT-26674 Fixed
#KT-26676 Fixed
2018-09-13 16:38:29 +03:00
Mikhail Glukhikh
4ed4754d80
Additional tests for KT-21131
2018-05-24 15:15:23 +03:00
Mikhail Glukhikh
f3c2dd0526
Code inliner: keep main property if it can have side effects
...
So #KT-24165 Fixed
2018-05-24 15:15:22 +03:00
Mikhail Glukhikh
93a510c05b
Code inliner: move lambda outside parentheses always when possible
...
So #KT-24215 Fixed
2018-05-24 15:15:21 +03:00
Mikhail Glukhikh
2d7e274860
Fix importing scope order in ReplaceWithAnnotationAnalyzer
...
So #KT-22615 Fixed
2018-05-24 15:15:13 +03:00
Mikhail Glukhikh
834c3fe62b
Do not inline property setter if it's not required (e.g. ReplaceWith)
...
So #KT-21237 Fixed
2017-12-07 12:14:29 +03:00
Mikhail Glukhikh
bddaab9d48
Inline properties without setter / with default setter correctly
...
Related to KT-21237
2017-12-07 12:14:29 +03:00
Nikolay Krasko
24865ba26a
Allow deprecated fix for TYPEALIAS_EXPANSION_DEPRECATION
2017-07-28 01:28:56 +03:00
Nikolay Krasko
53373b66b9
Do not replace in alias when constructor has special pattern (KT-19202)
...
#KT-19202 Fixed
2017-07-28 01:28:56 +03:00
Valentin Kipyatkov
996292264b
Fixed inline when multiple implicit receivers exist
...
#KT-17776 Fixed
#KT-17266 Fixed
2017-07-27 13:55:25 +03:00
Nikolay Krasko
732d1129ab
Enable replace for deprecated alias in whole project (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:59 +03:00
Nikolay Krasko
5df2698f77
Enable ReplaceWith for type aliases (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:57 +03:00
Dmitry Jemerov
a379a814ba
Implement option for wrapping class annotations
2017-07-07 16:48:31 +02:00
Valentin Kipyatkov
c69375ebdc
Remove redundant curly braces in string templates on inline
2017-05-26 16:37:37 +03:00
Valentin Kipyatkov
55979aca74
Drop result value if it's not needed
2017-05-26 16:37:35 +03:00
Dmitry Petrov
c83b764c73
Update testData after changes in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Jemerov
e2f75463d7
Rewrite AbstractQuickFixTest based on light fixture test case
...
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00
Mikhail Zarechenskiy
0c6a860a22
ReplaceWith annotation resolver: use module from resolution facade to build imports scope
...
#KT-15873 Fixed
Using module from original element may lead to exceptions as it could be
<built-ins module> (after deprecation of `mod` operator)
2017-01-27 14:13:13 +03:00
Mikhael Bogdanov
5222768ba1
Adedd quickfix check if @PublishedApi stub already exists
2016-12-20 09:42:14 +01:00
Mikhael Bogdanov
c38b55612b
Support properties in @PublishedApi bridge quickfix
2016-12-20 09:42:13 +01:00
Mikhael Bogdanov
5ffc0b36b0
Quickfix for published api
2016-12-09 11:55:16 +01:00
Valentin Kipyatkov
330d3a255a
introduceValue() always adds statement before except for safe call case
2016-11-08 12:46:42 +03:00
Alexander Udalov
9be219b69c
Check presence of dispatch receiver parameter in modifier checks
...
Also fix typo in "inapplicable infix" diagnostic message
2016-07-22 18:13:39 +03:00
Alexander Udalov
2a390155a9
Fix quotes in diagnostic messages
...
See 8316953259
2016-07-22 18:13:38 +03:00
Yan Zhulanow
6752df189d
Make infix modifier diagnostic message more informative (KT-12589)
...
(cherry picked from commit 2744309)
2016-06-24 15:10:19 +03:00
Mikhail Glukhikh
4abcc278fd
Can be constructor property: comment saver introduced to retain comments; unbound comments now added before, not after
...
(cherry picked from commit 886cf21)
2016-06-21 22:23:23 +03:00
Alexander Udalov
ca76e4d426
Support new double colon expressions in IDE code
2016-05-26 22:22:41 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Alexander Udalov
1b8f934b54
Delete deprecated enum 'values' property
2016-02-19 22:28:44 +03:00
Yan Zhulanow
3fa506fd45
"Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
2016-01-26 17:21:44 +03:00
Ilya Gorbunov
4f1d2252f0
Make test for replacement, which requires adding import to the package with operator, independent from stdlib.
2016-01-22 05:54:38 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Mikhail Glukhikh
dc60c62781
Enum.values is now deprecated but Enum.values() is no more deprecated
2015-11-23 17:29:36 +03:00
Valentin Kipyatkov
e66f1c2d70
KT-9981 Code cleanup replace usages of !in incorrectly
...
#KT-9981 Fixed
2015-11-13 14:32:33 +03:00
Valentin Kipyatkov
de11d571ef
KT-9928 Replacement not offered for a usage of symbol deprecated with DeprecationLevel.ERROR
...
#KT-9928 Fixed
2015-11-11 16:49:52 +03:00
Svetlana Isakova
7150be7c67
Minor: fixed error message
2015-10-22 19:09:46 +03:00
Valentin Kipyatkov
28c950ffbe
Better replacement for annotations with parameters in ReplaceWIth pattern but still lot of safety pre-checks to be added
2015-10-19 19:22:26 +03:00
Valentin Kipyatkov
4290601807
VERY rough implementation of annotations with parameters in ReplaceWIth pattern
2015-10-19 19:22:26 +03:00
Valentin Kipyatkov
a8d9c761c8
Correct detection of non-qualified references in ReplaceWith analyzer
2015-10-19 18:40:15 +03:00
Denis Zharkov
d8ede6d03e
Transform Enum.values to property
2015-10-17 17:46:16 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Valentin Kipyatkov
2ae13ed76b
KT-9380 Handle malformed ReplaceWith annotations gracefully
...
#KT-9380 Fixed
2015-10-05 15:33:45 +03:00
Dmitry Jemerov
4ca434da54
remove support for 'trait' keyword
2015-09-22 15:00:24 +02:00