Commit Graph

673 Commits

Author SHA1 Message Date
Valentin Kipyatkov 1bb6dae444 Auto-import fix should suggest declarations that cannot be used in this position
This also should fix KT-9122 Assertion error when psi modified from IDE

 #KT-9122 Fixed
2015-10-05 15:33:46 +03:00
Valentin Kipyatkov ab5fe60bbe Corrected quickfix class name in tests 2015-10-05 15:33:45 +03:00
Valentin Kipyatkov 2ae13ed76b KT-9380 Handle malformed ReplaceWith annotations gracefully
#KT-9380 Fixed
2015-10-05 15:33:45 +03:00
Valentin Kipyatkov 836d116786 Checked that import popup now works for callable references 2015-10-03 10:40:52 +03:00
Alexander Udalov 012a2971ff Quick-fix to add type to LHS of incorrect callable references 2015-10-03 04:37:05 +03:00
Alexey Sedunov 1f6f617546 Create from Usage: Suggest synthetic function classes as extension receivers 2015-10-01 17:35:25 +03:00
Alexey Sedunov 1d83d75a82 Create from Usage: Use function form when rendering FunctionN types
#KT-7522 Fixed
2015-10-01 17:35:24 +03:00
Alexey Sedunov 2b354cd4db Create parameter: Look for containing function if no class is found. Support secondary constructors
#KT-9322 Fixed
2015-10-01 17:35:19 +03:00
Alexey Sedunov aa080bf201 Create from Usage: Forbid for parameters/local variables when reference is not an identifier
#KT-9305 Fixed
2015-10-01 17:35:16 +03:00
Zalim Bashorov 9256682cc5 Fix quickfix and tests 2015-10-01 14:57:26 +03:00
Dmitry Jemerov ee1175d5e5 fix 'operator' modifier inspection
#KT-9349 Fixed
2015-09-28 14:35:41 +02:00
Zalim Bashorov c7c7382b8e Minor: fix testdata 2015-09-25 21:16:02 +03:00
Dmitry Jemerov 3d0e91065a quickfix for usages of operators that don't have the proper annotation 2015-09-25 20:00:29 +02:00
Dmitry Jemerov 8b0ccce4f1 code review; add 'operator' also to next() and hasNext(); check toplevel functions 2015-09-25 20:00:28 +02:00
Dmitry Jemerov e0f8d68a5f add 'operator' modifier when creating next() and hasNext() from usage 2015-09-25 20:00:28 +02:00
Dmitry Jemerov 41d1cf6083 check return type of contains() and compareTo() 2015-09-25 20:00:26 +02:00
Dmitry Jemerov 3dbb74bf0c teach 'create from usage' to add 'operator' modifier when necessary 2015-09-25 20:00:26 +02:00
Dmitry Jemerov bda0bd1de1 quickfix to add 'operator' keyword to operator-like functions 2015-09-25 20:00:19 +02:00
Dmitry Jemerov 61d78e0880 tests for "Add 'const' modifier" 2015-09-25 19:14:54 +02:00
Dmitry Jemerov 48bcc93ec2 revert incorrect testdata changes 2015-09-25 19:14:53 +02:00
Dmitry Jemerov 250456ab4b add quickfix for NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION 2015-09-25 19:14:52 +02:00
Dmitry Jemerov 32e6a6e3a1 inspection and quickfix to replace usages of deprecated package facades 2015-09-25 18:29:06 +02:00
Dmitry Jemerov e1acc8744d "introduce backing property" intention 2015-09-25 18:25:37 +02:00
Dmitry Jemerov dadef12723 backing field migration fixes 2015-09-25 18:25:36 +02:00
Yan Zhulanow 6db9344659 Fix compiler tests 2015-09-25 19:20:20 +03:00
Denis Zharkov 3f6cadf9b7 Change FUNCTION_EXPRESSION_WITH_NAME severity to ERROR
Also drop deprecation related parts and get rid of usages of this `feature` within testData
2015-09-25 08:29:26 +03:00
Denis Zharkov 1d90b2e1fe Get rid of obsolete syntax in quickfixes changing lambda's signature
- Do not wrap parameters with '()'
- Do not set return type for them
- Fix existing testData
2015-09-25 08:29:26 +03:00
Denis Zharkov 31d2aa23f5 Remove ChangeType quickfix for lamdas with deprecated syntax 2015-09-25 08:29:26 +03:00
Denis Zharkov c6377a0664 Drop everything related to lambda syntax deprecation 2015-09-25 08:29:26 +03:00
Stanislav Erokhin fc9aa87a05 Report diagnostic on import with explicit import class if class was imported earlier. 2015-09-24 14:07:43 +03:00
Dmitry Jemerov 4ca434da54 remove support for 'trait' keyword 2015-09-22 15:00:24 +02:00
Stanislav Erokhin 8efbf4fc32 Fixed testdata -- removed package import 2015-09-18 21:00:20 +03:00
Valentin Kipyatkov 1ccbda6af4 Do not insert explicit visibility modifier if it's default 2015-09-18 15:44:17 +03:00
Valentin Kipyatkov 8ba7f2c238 KT-9128 ReplaceWith incorrectly converts javaClass<X>() to X::class.java for type with arguments
#KT-9128 Fixed
2015-09-18 15:44:17 +03:00
Valentin Kipyatkov fb72786392 No ReplaceWith for locals 2015-09-18 15:44:16 +03:00
Denis Zharkov 9dada595b6 Replace deprecated annotations with modifiers in testData 2015-09-18 10:14:41 +03:00
Denis Zharkov 4850fd10f0 Regenerate test data containing rendered descriptors
Introduced '@' after each annotation
2015-09-18 10:14:39 +03:00
Denis Zharkov bae3320d52 Get rid of deprecated annotations in testData 2015-09-18 10:14:32 +03:00
Denis Zharkov 38bafaa35c Drop annotations deprecation related things: diagnostics, quickfixes 2015-09-18 09:34:25 +03:00
Mikhail Glukhikh f1fcb14f44 Suppress warning intention fix: now multi declaration is not a possible intention target but its initializer is, relevant test fixes 2015-09-16 09:51:31 +03:00
Alexey Sedunov d5deb03292 Change Function Signature Fix: Do not render default values in overriding functions
#KT-8520 Fixed
2015-09-11 02:20:47 +03:00
Denis Zharkov 372e35436a Implement annotation related migrational quick fixes 2015-09-10 10:04:59 +03:00
Michael Nedzelsky 9f5bbf94d3 introduce quickfix for change visiblity from private to internal for private top-level declarations 2015-09-08 07:30:27 +03:00
Michael Nedzelsky 92ca057b4a fix tests in org.jetbrains.kotlin.idea.quickfix 2015-09-08 02:05:41 +03:00
Valentin Kipyatkov 527faec457 Moved test data 2015-09-07 19:34:32 +03:00
Mikhail Glukhikh 8f7b29f80a Annotation rename: target --> @Target 2015-09-07 13:42:26 +03:00
Denis Zharkov 31244edec9 Deprecate deprecated in favor of Deprecated 2015-09-04 18:19:31 +03:00
Denis Zharkov bbc192fda5 Deprecate suppress annotation in favor of Suppress 2015-09-04 17:23:25 +03:00
Michael Nedzelsky 3a4dfc5241 remove requirements for explicit return type for public members 2015-09-03 18:23:04 +03:00
Valentin Kipyatkov 4085c1cf41 One more test 2015-09-03 15:56:00 +03:00