Commit Graph

980 Commits

Author SHA1 Message Date
shiraji ab4eb1dd20 Add better quickfix for scope functions #KT-13676 Fixed 2017-06-15 15:01:42 +03:00
Dmitry Jemerov a6d80b78de Fix tests 2017-06-13 13:04:11 +02:00
Dmitry Jemerov 2326b5faf3 Update testdata according to behavior changes 2017-06-08 10:43:19 +02:00
Dmitry Jemerov 558203e2bb Rename "Remove no constructor" to "Remove constructor call"; fix test 2017-06-07 19:49:45 +02:00
Toshiaki Kameyama bb5681fdb5 Add quick-fix for NO_CONSTRUCTOR error #KT-17842 Fixed 2017-06-07 19:47:36 +02:00
Andrius Semionovas 4acb95acb5 Fix KT-16725; Remove spaces between array indices 2017-06-07 19:39:55 +02:00
Zoltan Polgar 46ce9a6946 JS: Avoid declaration skeleton body generation in case of external class or object 2017-06-07 19:22:24 +02:00
Kirill Rakhman 08bd212d82 Add quickfix for @receiver applied to extension member instead of type
So #KT-14648 Fixed
2017-05-30 15:47:21 +03: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 Neverov 753b714544 Report cases when class member can be private 2017-05-26 13:29:01 +02:00
Dmitry Petrov c83b764c73 Update testData after changes in diagnostics 2017-05-26 13:58:46 +03:00
Dmitry Petrov 7979663e6c Update testData for changed diagnostic messages 2017-05-26 13:58:46 +03:00
Dmitry Neverov 0fd42bc747 Don't suggest cast when !! is possible #KT-18033 Fixed 2017-05-26 09:47:57 +03:00
nd 8d6d228bb8 Move property to constructor preserves vararg keyword (#1095)
#KT-18035 Fixed
2017-05-24 14:58:30 +02:00
shiraji c8e58ce9ab Fix WrapWithSafeLetCallFix ignore extension method
Related to KT-17726
2017-05-24 14:02:01 +03:00
Dmitry Neverov 46aaee5d05 Fix nullability quick-fixes with implicit receiver #KT-17726 Fixed 2017-05-24 14:01:58 +03:00
qx 152c8b521e Missed file 2017-05-22 18:34:27 +03:00
qx bc14ce740a KT-15309 Don't apply "Fix with 'asDynamic'" to member extension funcitons 2017-05-22 18:34:27 +03:00
Valentin Kipyatkov 1fe6886a33 Fixed error message to quote parameter name 2017-05-20 23:44:20 +03:00
Mikhail Glukhikh a73cf0e1fe Don't suggest make object container open #KT-11003 Fixed 2017-05-19 20:36:24 +03:00
Valentin Kipyatkov 92a763552c KT-17970 Intention actions to format parameter/argument list placing each on separate line
#KT-17970 Fixed
2017-05-19 12:20:51 +03:00
fitermay e30b9758f4 Introduce action to add missing when branches on sealed class
Made via diagnostics NON_EXHAUSTIVE_WHEN_FOR_SEALED_CLASS
with INFO severity and quick-fix
So #KT-17580 Fixed
2017-05-16 16:43:27 +03:00
Mikhail Glukhikh 382bf9a500 ConvertReferenceToLambda status refactoring
Intention is not registered now; inspection is enabled by default now,
 but has highlight level of "No highlighting"
2017-05-10 14:56:38 +03:00
Mikhail Glukhikh 1d722e01f0 Get rid of local version of RemoveModifierFix 2017-05-10 14:56:36 +03:00
Nadia Humbert-Labeaumaz e76f1acc0b Remove "Move to class body" intention for annotation parameters (#1076)
#KT-17708 Fixed
2017-05-09 10:27:37 +03:00
shiraji 56d712a02a Introduce quick-fix adding label to 'return' in closures #KT-16851 Fixed 2017-05-05 23:27:10 +03:00
Kirill Rakhman cd07aea5e3 Add quickfix for adding 'lateinit'
Fixes #KT-17650
2017-05-05 11:09:07 +03:00
qx f6fe1c50c2 Used ConvertMemberToExtensionIntention in MigrateExternalExtensionFix instead of manually creating extension method 2017-05-04 16:11:17 +03:00
qx 8ba61ce7aa Fixed KT-15270 Quickfix to migrate from @native*** 2017-05-04 16:11:17 +03:00
qx 71de20b9e6 Retain javascript name from @native annotation
As the first part of KT-15257 JS: quickfix to migrate from @native to external
2017-05-04 16:11:16 +03:00
qx c364e79557 Implemented @native-* annotation migration quickfix for extension functions
As the first part of KT-15270 Quickfix to migrate from @native***
2017-05-04 16:11:16 +03:00
Mikhail Glukhikh 35754a98e7 KT-17497 related: introduce fix for REDUNDANT_ELSE_IN_WHEN 2017-05-04 14:17:42 +03:00
Mikhail Glukhikh 28283bad3e Introduce special CAPTURED_VAL_INITIALIZATION for members 2017-05-02 19:59:37 +03:00
Mikhail Glukhikh 787a32f4f1 KT-17408 related: fix of two broken tests 2017-04-26 17:31:46 +03:00
Simon Ogorodnik 3acebc3001 Fix KNPE in KotlinAddImportActionKt.createSingleImportActionForConstructor
#KT-17525 fixed
2017-04-24 19:18:13 +03:00
Alexey Sedunov fd41e266fb Quick Fixes: Add/remove 'suspend' in hierarchy
#KT-15903 Fixed
2017-04-24 14:55:37 +03:00
Alexey Sedunov c492f339e6 Quick Fixes: Fix AssertionError on rendering type parameter
#KT-17404 Fixed
2017-04-21 13:32:33 +03:00
Vyacheslav Gerasimov dcae66a727 Add quickfix for INAPPLICABLE_JVM_FIELD
replaces with 'const' when possible

#KT-10981 Fixed
2017-04-20 12:10:20 +03:00
Vyacheslav Gerasimov 199bff7e70 Add quickfix for 'Illegal inline parameter modifier'
Adds inline to function if crossinline is used on parameter

#KT-14046 Fixed
2017-04-20 12:09:53 +03:00
Dmitry Jemerov d001cea4c3 Fix tests: add ACTION tags for newly added actions 2017-04-20 11:02:40 +02:00
shiraji 83169ad781 "Add open to callable" intention introduced #KT-16786 Fixed 2017-04-19 11:37:48 +03:00
Dmitry Petrov 5ccfbcbe22 KT-4960 Redeclaration is not reported for type parameters of interfaces
When resolving a class body for a class without a primary constructor
(e.g., an interface), no checks were performed for redeclarations
in the corresponding class header.
Creating & initializing a lexical scope of an appropriate kind will do it.
Note that since class has no primary constructor, only type parameters
could be redeclared (and that's KT-4960).
2017-04-13 15:57:24 +03:00
Simon Ogorodnik c6cdbe7eed Fix import member quickfix to check receiver
#KT-17037 fixed
2017-04-11 20:29:15 +03:00
mglukhikh 6277476573 Do not add a new label to labeled loop
Relevant situation: break / continue in when #KT-16128 Fixed
2017-04-05 15:40:08 +03:00
Dmitry Jemerov 79c814636e Convert AddOpenToClassDeclarationTest to regular multifile quickfix test 2017-03-27 19:48:52 +02:00
Dmitry Jemerov 4f229c3fdc Convert AbstractQuickFixMultiFileTest to light fixture test case 2017-03-27 19:48:51 +02: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
Dmitry Jemerov d8dfad875d Drop pre-1.0 whole-project syntax migration actions 2017-03-27 14:57:44 +02:00
Vyacheslav Gerasimov 8c41e44b3b Fix MovePropertyToConstructorIntention and broken tests 2017-03-24 21:55:27 +03:00