Mikhail Glukhikh
da3d083dc0
Quick fix for enum entry super constructor syntax fix, together with a set of tests
2015-05-15 16:13:36 +03:00
Mikhail Glukhikh
147bca3d22
Enum deprecated syntax detection implemented and integrated into DeclarationsChecker.
...
A lot of tests was changed to refactor deprecated syntax. Six new tests were added to check deprecated syntax detection.
Diagnostic for "enum entry uses deprecated super constructor": constructor is highlighted
Diagnostic for "enum entry uses deprecated or no delimiter".
One warning removed.
2015-05-15 16:13:34 +03:00
Mikhail Glukhikh
1a312140e9
New enum syntax: Short constructor syntax introduced for entries, optional commas between entries, semicolon after entries. #KT-7605 Fixed.
...
Grammar changed accordingly.
Semicolons prohibited after an entry except the last one.
Only one initializer is allowed per entry.
EnumReferenceExpression AST node introduced.
Some tests fixed, a pair of new tests written. Kotlin code inside project fixed.
Formatter and intendation tests fixed accordingly.
Stub version is incremented.
2015-05-15 16:13:32 +03:00
Mikhail Glukhikh
67cce57aeb
Decompiler & stub builder fixed accordingly with new enum syntax.
...
Companion object now directly follows enum entries to avoid having them at the middle.
Some decompiler & stub builder tests fixed accordingly.
2015-05-15 16:13:29 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Nikolay Krasko
6b64ae77f3
Test light classes from sources have priority over decompiled light classes
2015-05-15 15:29:31 +03:00
Evgeny Gerashchenko
533935f2c0
KT-7472 function of anonymous class is never used
...
#KT-7472 fixed
2015-05-14 21:51:07 +03:00
Alexander Udalov
62d0d5c77f
Minor, fix error message when renaming package facade
2015-05-14 18:40:49 +03:00
Alexey Sedunov
e7748e2700
Convert Parameter to Receiver: Replace parameter references with labeled this-expressions (before shortening them). Report conflict when this-label is ambiguous
...
#KT-7681 Fixed
2015-05-14 15:47:56 +03:00
Alexey Sedunov
02006126f5
Introduce Property: Forbid extension properties with initializers and lazy
...
ones
2015-05-14 15:47:51 +03:00
Alexey Sedunov
b69b66feab
Extraction Engine: Do not extract type parameter if it's resolved in the target scope
...
#KT-7246 Fixed
2015-05-14 15:47:50 +03:00
Sergey Mashkov
a11e0a84b5
JS tests for addClass, removeClass, removeFromParent
2015-05-14 09:16:56 +03:00
Valentin Kipyatkov
1ad5ea4f7e
Corrected test data
2015-05-14 01:10:13 +03:00
Valentin Kipyatkov
d09c1e7c5b
"Invert if" - handling some more cases
2015-05-14 01:10:12 +03:00
Valentin Kipyatkov
279b406bca
"Invert if condition" intention works better for non-symmetric if's
...
#KT-5009 Fixed
2015-05-14 01:10:11 +03:00
Valentin Kipyatkov
181af17315
KT-7704 Intention actions on visibility modifier for quick changing it
...
#KT-7704 Fixed
2015-05-14 01:10:11 +03:00
Valentin Kipyatkov
38ac420057
Fixed bug in MergeWhenIntention
2015-05-14 01:10:10 +03:00
Valentin Kipyatkov
102aa661ee
Moved intention based inspection classes to their intention classes + some renames
2015-05-14 01:10:08 +03:00
Valentin Kipyatkov
9a97818b82
Smaller range for SimplifyNegatedBinaryExpressionIntention
2015-05-14 01:10:08 +03:00
Valentin Kipyatkov
addcadeddf
Replace "contains" with "in" intention handles negation
2015-05-14 01:10:06 +03:00
Valentin Kipyatkov
11812a9ece
Renamed some intentions + test data dirs
2015-05-14 01:10:05 +03:00
Valentin Kipyatkov
096df91972
Renamed intentions package
2015-05-14 01:10:05 +03:00
Valentin Kipyatkov
8095aabd42
Refactored intentions to replace special name calls with operators
2015-05-14 01:10:04 +03:00
Valentin Kipyatkov
fbc3fa2b09
KT-7212 Convert member function to extension intenton positions caret improperly
...
#KT-7212 Fixed
2015-05-14 01:10:04 +03:00
Valentin Kipyatkov
5491523f05
Renamed intention class
2015-05-14 01:10:03 +03:00
Valentin Kipyatkov
48ac89dca4
Refactored ConvertMemberToExtension to re-use original declaration instead of regenerating it by text
...
#KT-4920 Fixed
2015-05-14 01:10:02 +03:00
Valentin Kipyatkov
ac9d75b45e
KT-6632 "Convert to extension" intention should not be available on methods that override or implement a superclass method
...
#KT-6632 Fixed
2015-05-14 01:10:02 +03:00
Valentin Kipyatkov
a23c6a2cdc
Smaller range + refactoring of ConvertMemberToExtension
2015-05-14 01:10:02 +03:00
Valentin Kipyatkov
ceb9b3d663
Fixed test data
2015-05-14 01:09:53 +03:00
Valentin Kipyatkov
67a5e8a69d
Fixed bug in DeprecatedLambdaSyntaxFix
2015-05-14 01:09:52 +03:00
Valentin Kipyatkov
b9486846e1
ElvisToIfThenIntention - smaller range + minor code improvements
2015-05-14 01:09:48 +03:00
Valentin Kipyatkov
21eb2acd31
Shorter quickfix names
2015-05-14 01:09:47 +03:00
Valentin Kipyatkov
e31f0ed829
Add constructor parameters quickfix reuses existing parameters
2015-05-14 01:09:46 +03:00
Valentin Kipyatkov
0952e9a63a
Add constructor parameters quickfix works for multiple constructors
2015-05-14 01:09:46 +03:00
Valentin Kipyatkov
4ac2e29d28
Fixed error type case
2015-05-14 01:09:45 +03:00
Valentin Kipyatkov
c6ebc50e6c
Renaming test data files
2015-05-14 01:09:45 +03:00
Valentin Kipyatkov
381049d13e
Fix for non-accessible constructor case
2015-05-14 01:09:44 +03:00
Valentin Kipyatkov
a5dabac296
Refactored "Change to constructor invocation" and new "Add constructor parameters and use them" quickfixes into one factory, making the first one always available
2015-05-14 01:09:44 +03:00
Valentin Kipyatkov
cd419c2ddf
Moved test data
2015-05-14 01:09:44 +03:00
Valentin Kipyatkov
00dcbd4d93
Initial implementation of KT-4046 Support 'Create constructor matching superclass'
...
#KT-4046 Fixed
2015-05-14 01:09:21 +03:00
Valentin Kipyatkov
734b502ad6
Fixed test data
2015-05-14 01:00:30 +03:00
Valentin Kipyatkov
709573db69
Fix in SpecifyTypeExplicitlyIntention
2015-05-14 01:00:29 +03:00
Valentin Kipyatkov
ada11ca5e9
Use of expressions instead of plain text when converting when's
2015-05-14 01:00:28 +03:00
Valentin Kipyatkov
76fc0c1418
FlattenWhenIntention - smaller range and refactoring
2015-05-14 01:00:28 +03:00
Valentin Kipyatkov
74cdd39ac9
Renamed test data dirs
2015-05-14 01:00:26 +03:00
Valentin Kipyatkov
b0ce16eada
Remove explicit type intention should not be available on public
2015-05-14 01:00:25 +03:00
Valentin Kipyatkov
2d90ee5cad
Split SpecifyTypeExplicitly intention into two + refactored them completely
2015-05-14 01:00:25 +03:00
Valentin Kipyatkov
7499c4bc19
Refactored SplitIfIntention + JetPsiFactory.createIf uses createExpressionByPattern and does not reformat its arguments
2015-05-14 01:00:25 +03:00
Valentin Kipyatkov
b0aca040d8
"JetPsiFactory.createExpressionByPattern" and some usages of it
2015-05-14 01:00:24 +03:00
Valentin Kipyatkov
05b6181d20
Renamed intention
2015-05-14 01:00:24 +03:00