Mikhail Glukhikh
53e7778078
Add modifiers on the same line even after annotation #KT-26492 Fixed
2018-09-05 13:05:08 +03:00
Mikhail Glukhikh
4dd95e5640
Introduce OptionalExpectationInspection
...
It works at INFORMATION level only and is intended to form quick-fixes
to add relevant actual declarations.
#KT-25533 Fixed
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
df125702c1
Test for KT-25040 (just to stabilize behaviour)
2018-09-05 13:05:07 +03:00
Toshiaki Kameyama
1898df3fb7
Introduce "Convert property getter to initializer" intention
...
#KT-13854 Fixed
2018-08-14 15:32:20 +03:00
Mikhail Glukhikh
db787c78d6
Implement members: don't add 'actual' modifier for fake overrides
...
#KT-25044 Fixed
2018-08-09 12:59:58 +03:00
Mikhail Glukhikh
ed5791ed9e
Introduce "remove actual" fix for ACTUAL_WITHOUT_EXPECT
...
Related to KT-25044
2018-08-09 12:59:57 +03:00
Mikhail Glukhikh
14d6560e67
Add modality/visibility/inline to all expect/actual declarations in QF
...
So #KT-25539 Fixed
2018-07-26 18:01:01 +03:00
Mikhail Glukhikh
fdc0335b4a
Add actual: handle (incorrect) case with expect function with body
...
So #KT-23326 Fixed
2018-06-29 10:54:37 +03:00
Mikhail Glukhikh
0fb183e302
Add actual: handle parameters with val/var as compatible with property
...
So #KT-23762 Fixed
2018-06-29 10:54:36 +03:00
Mikhail Glukhikh
dd0b267531
Add actual: handle primary & secondary constructors as compatible
...
So #KT-23686 Fixed
2018-06-29 10:54:35 +03:00
Mikhail Glukhikh
16c6d63b10
Create actual: do not generate default parameter values
...
So #KT-23105 Fixed
2018-06-29 10:54:32 +03:00
Mikhail Glukhikh
aac71bf904
Safe delete: when invoking on actual, delete expect & actual neighbors
...
So #KT-15666 Fixed
2018-06-29 10:54:24 +03:00
Mikhail Glukhikh
eb92b7ed7f
Unused symbol: don't suggest actual declaration used in another platform
...
Related to KT-17512
Related to KT-15666
2018-06-26 15:36:10 +03:00
Mikhail Glukhikh
7e0e7dc983
Unused symbol: remove forced "used" from actual declarations
...
Now we really check whether actual declaration has usages
(in expect or actual code) or not
Related to KT-17512
Related to KT-15666
2018-06-26 15:36:07 +03:00
Alexey Sedunov
ed8b4b761a
Override/Implement: Add 'actual' modifier to overrides of 'expect'
...
#KT-23106 Fixed
2018-06-19 12:22:40 +03:00
Pavel V. Talanov
1be477c816
Fix "add member" quick fix when invoked from java on common class
...
#KT-24115 Fixed
2018-06-06 21:03:56 +02:00
Pavel V. Talanov
a4e327c137
Mpp: KT-23457, fix importing common classes into common modules
...
Add test for KT-23457
NOTE: fixes 'importClassInCommon' test
Other test cases added to increase coverage
#KT-23457 Fixed
2018-04-26 15:33:51 +02:00
Pavel V. Talanov
64a28dd542
QuickFixMultiModuleTest: fix test code
...
Adjust test data
2018-04-26 15:33:48 +02:00
Pavel V. Talanov
94dfcba5c5
Minor: adjust quick fix test data to avoid "conflicting overloads"
2018-04-20 20:00:07 +02:00
Pavel V. Talanov
1f4926e259
Rewrite QuickFixMultiModuleTest to be generated
...
Adjust test data
Drop 'overload' test data since it was never run before
2018-04-04 17:56:34 +02:00
Mikhail Glukhikh
fe7b7fb0bd
Create actual fix: add empty brackets for classes in super-type lists
...
Related to KT-21082
2018-03-06 14:32:30 +03:00
Mikhail Glukhikh
ef3e0b01c4
Create actual fix: use target module instead of target platform
2018-03-06 14:32:30 +03:00
Mikhail Glukhikh
90e4413fc9
Create actual: put top-level actual declarations in the same file
...
When multiple expect declarations are in the same file,
and some of them already have actual declarations for this platform,
then "Create actual fix" put other declarations into the same file
with existing actual declarations
So #KT-17058 Fixed
So #KT-21082 Fixed
2018-03-06 14:32:30 +03:00
Alexander Udalov
8c6b140865
Simplify diagnostic message for ACTUAL_MISSING
...
#KT-21939 Fixed
2018-02-05 13:38:03 +01:00
Mikhail Glukhikh
5abb9dd23e
Create actual fix: handle companions correctly #KT-21114 Fixed
2018-01-30 15:41:37 +03:00
Alexey Sedunov
5892944bfc
Convert Enum to Sealed Class: Support expect/actual classes
2018-01-16 16:09:17 +03:00
Alexey Sedunov
9d5d85a1c5
Convert Sealed Class to Enum: Support expect/actual classes
...
#KT-18912 Fixed
2018-01-16 16:09:17 +03:00
Alexey Sedunov
820ade41ed
Create from Usage: Do not add bodies to expect class members
...
#KT-21122 Fixed
2017-11-30 12:49:24 +03:00
Mikhail Glukhikh
561d7749b1
Choose implementing module correctly in "create actual fix"
...
Take implements / expectedBy dependency into account
So #KT-20803 Fixed
2017-10-30 14:13:10 +03:00
Mikhail Glukhikh
f0da58531e
Enhance AbstractQuickFixMultiModuleTest
...
Handle same files at different source roots correctly
2017-10-30 14:12:27 +03:00
Mikhail Glukhikh
739b21f519
Introduce "add missing actual members" quick-fix #KT-18449 Fixed
2017-10-20 17:24:19 +03:00
Alexey Sedunov
83b10403d7
Misc: Drop test for implementing abstract members in expect-class
...
The "not implemented" error is not reported for such classes, so
quick fix is not available anymore (see KT-16099)
2017-10-18 18:17:50 +03:00
Mikhail Glukhikh
aff689afba
Allow "create actual" for function even if partially-compatible exists
...
So #KT-20163 Fixed
2017-10-05 15:28:37 +03:00
Mikhail Glukhikh
e8321be380
Handle interface / abstract members correctly in "Create actual" fix
...
So #KT-20243 Fixed
2017-10-05 15:28:33 +03:00
Mikhail Glukhikh
fe786ad7f3
Set primary constructor and its properties actual in "create actual"
...
So #KT-20044 Fixed
2017-10-05 15:28:30 +03:00
Mikhail Glukhikh
d85c2dbe1f
Specify relevant declaration type in "create actual" fix #KT-20325 Fixed
2017-10-05 15:28:28 +03:00
Mikhail Glukhikh
93109c0d0e
Generate actual keyword for secondary constructors #KT-20008 Fixed
2017-10-05 15:28:25 +03:00
Mikhail Glukhikh
1e79d9791d
Generate actual nested classes for actual owner class #KT-19937 Fixed
2017-10-05 15:28:22 +03:00
Alexander Udalov
7f5b9b1760
Add tests on quick fix that adds 'actual' to platform declaration
...
#KT-18454
2017-09-25 12:00:18 +03:00
Mikhail Glukhikh
e12de11ce9
Fix add modifier for replacement case, add expect/actual order tests
2017-09-16 19:47:43 +03:00
Mikhail Glukhikh
2fe7cc5534
Add more tests for KT-20262
2017-09-16 19:47:38 +03:00
Mikhail Glukhikh
6e41bbc2a7
Migration: header->expect & impl->actual in IDEA test data
2017-09-15 18:29:06 +03:00
Mikhail Glukhikh
6766196bd8
Migration to expect/actual: correct multi-module QF tests
2017-09-15 18:28:36 +03:00
Mikhail Glukhikh
bc78d672c1
Migration: add quick-fix to replace header->expect & impl->actual
2017-09-15 18:28:28 +03:00
Mikhail Glukhikh
fba1a2a2db
Migration to actual/expect: quick-fix CreateActualFix with tests
2017-09-15 18:26:09 +03:00
Alexey Sedunov
8b64a4c8ea
Override/Implement: Drop 'impl' modifier for non-impl class members
...
#KT-18469 Fixed
2017-09-08 15:38:14 +03:00
Alexey Sedunov
6f8503a178
Override/Implement: Do not generate bodies for header class members
...
#KT-15659 Fixed
2017-09-08 15:38:14 +03:00
Alexander Udalov
d1cff41ce0
Treat nested class of header class as header
...
Note that the quick fix to implement header class works incorrectly when
that class has nested classes at the moment; this should be fixed
separately
#KT-15494 Fixed
#KT-18573 Fixed
2017-08-25 15:40:37 +03:00
Alexey Sedunov
2f556e1bea
Refactorings: Support header/impl functions in member hierarchy transformations
...
#KT-18904 Fixed
#KT-18905 Fixed
2017-08-15 19:08:28 +03:00
Alexey Sedunov
f80fcc7146
Parameter <-> Receiver Conversion: Support header/impl declarations
...
#KT-18907 Fixed
2017-08-15 19:08:27 +03:00