Commit Graph

5273 Commits

Author SHA1 Message Date
Mikhail Glukhikh 3540bc008b Build fix: testPlatform3 from MultiModuleHighlightingTest 2016-12-15 11:07:33 +03:00
Stanislav Erokhin 3600b51d90 Minor. fix test data. 2016-12-14 23:59:38 +03:00
Nikolay Krasko 2bb48fc802 Allow empty single-line bodies in property accessors 2016-12-14 13:40:44 +03:00
Nikolay Krasko 2841931ffa Do not force new line in body for empty functions and function expressions (KT-10828)
#KT-10828 Fixed
2016-12-14 13:35:31 +03:00
Mikhail Glukhikh 052a5033b5 PLATFORM_DECLARATION_WITHOUT_DEFINITION rendering changed (platform is included into diagnostic text now) 2016-12-13 19:06:08 +03:00
Mikhail Glukhikh 7649232f86 Platform header annotator: implementation + simple multi-platform highlighting tests #KT-14905 Fixed 2016-12-13 19:02:23 +03:00
Dmitry Jemerov 502e99e918 Don't expect library classes to be shown in hierarchy view when using production scope 2016-12-13 12:43:55 +01:00
Dmitry Jemerov b8dc1b6771 Allow regex matching of available action names; accept both 2016.2 and 2016.3 names of static import quickfix 2016-12-13 12:40:03 +01:00
Dmitry Petrov e2b6d2d849 Drop 'propertyDelegated' convention (without additional deprecation ceremony). 2016-12-12 23:13:58 +03:00
Simon Ogorodnik fb5398cdcd Fix for KT-14885 J2K on paste adds duplicated imports 2016-12-12 18:16:17 +03:00
Mikhail Zarechenskiy 40ff7c6e33 Fix test data 2016-12-09 21:08:29 +03:00
Yan Zhulanow 3b65cb1ef2 Check if modality is refined in "Redundant modifier" inspection 2016-12-09 20:01:18 +03:00
Mikhail Zarechenskiy 373c1be7e4 Add quick fixes for mod/rem migration
- Remove 'operator' modifier
 - Rename operator 'mod/modAssign' to 'rem/remAssign'
2016-12-09 17:01:42 +03:00
Mikhail Zarechenskiy f37b7224da Fix test: do not propose to change 'mod' to '%' 2016-12-09 17:01:32 +03:00
shiraji 44ca45123d KT-15142 Remove redundant calls of the conversion method wrongly shown for Any?.toString
#KT-15142 Fixed
2016-12-09 14:33:55 +03:00
Mikhael Bogdanov 5ffc0b36b0 Quickfix for published api 2016-12-09 11:55:16 +01:00
Alexey Sedunov 215d8b1e1a Intentions: Convert function type receiver to parameter
#KT-14246 Fixed
2016-12-08 17:56:57 +03:00
Alexey Sedunov d4ed2d2022 Intentions: Convert function type parameter to receiver
#KT-14246 In Progress
2016-12-08 17:56:55 +03:00
Alexey Sedunov 9cadfd01ae Introduce Variable: Allow extraction to class body/file 2016-12-08 17:56:54 +03:00
Alexey Andreev 68412ae94f JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc 2016-12-08 15:41:39 +03:00
Nikolay Krasko 43948a0170 Wrap options for constructor parameters
#KT-12176 In Progress
2016-12-08 15:15:12 +03:00
Nikolay Krasko 300601da54 Indent () in if, when, while and do-while with continuation indent (KT-5897)
#KT-5897 Fixed
2016-12-08 15:15:11 +03:00
shiraji 2815b5e62b KT-15030 Remove redundant calls of conversion methods: false positive for 'toList()'
#KT-15030 Fixed
2016-12-07 19:00:12 +03:00
Mikhail Glukhikh 268702e0cc "Change return type for enclosing fix" now handles TYPE_INFERENCE_EXPECTED_TYPE_MISMATCH correctly #KT-14063 Fixed 2016-12-07 18:52:04 +03:00
Mikhail Glukhikh 2ac8e5b4a7 "Change return type fix" now handles data class properties correctly #KT-15028 Fixed 2016-12-07 18:51:58 +03:00
Mikhail Glukhikh 0994d46038 Convert reference to lambda: handle special case of extension functional type #KT-14985 Fixed 2016-12-07 18:51:53 +03:00
Mikhail Glukhikh e904e56de3 Convert reference to lambda: correct handling of static method references #KT-14982 Fixed 2016-12-07 18:51:48 +03:00
Mikhail Glukhikh ea8548c55b Simplify boolean == true / false is no longer applicable on flexible boolean #KT-15087 Fixed 2016-12-07 18:51:42 +03:00
Nikolay Krasko 726471d98e Avoid loading psi for compiled kotlin file if it's possible to get declaration by name from stubs 2016-12-05 17:22:42 +03:00
Mikhail Glukhikh 299f477a1b Call method references search in UnusedSymbolInspection.hasReferences to fix secondary constructor search
Makes #KT-12500 Fixed
Makes #KT-12501 Fixed
2016-12-05 10:58:21 +03:00
Alexey Sedunov 475ae0d638 Rename: Suggest respective parameter name for the local variable passed to function
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Alexey Sedunov b6d4bb4921 Create from Usage: Support adding type parameters to the referenced type
#KT-11760 Fixed
2016-12-02 14:14:09 +03:00
Alexey Sedunov c773afdbfa Intentions: Implement "Add names to call arguments" intention
#KT-14729 Fixed
2016-12-02 14:14:08 +03:00
Alexey Sedunov 2a594a5bcc Create from Usage: Support generation of abstract members for superclasses. Skip non-abstract superclasses when generating abstract member
#KT-14019 Fixed
2016-12-02 14:14:05 +03:00
Alexey Sedunov 25cebbab4b Extraction Engine: Do not wrap companion member references inside of the with call if it's disabled in extraction options
#KT-13781 Fixed
2016-12-02 14:14:04 +03:00
Alexey Sedunov 61210d6ba2 Move: Fix callable reference processing when moving to another package
#KT-14197 Fixed
2016-12-02 14:14:03 +03:00
Mikhail Glukhikh 4af9b274a1 KT-12100 convert try / finally to use: select use parameter after application 2016-12-01 20:39:19 +03:00
Mikhail Glukhikh 9ea326870d KT-12100 convert try / finally to use: report intention only at try { 2016-12-01 20:39:14 +03:00
Mikhail Glukhikh 0cc52e2ff8 KT-12100 convert try / finally to use: safe close() is allowed in finally + correct new lines 2016-12-01 20:39:08 +03:00
Mikhail Glukhikh 0ac443066e KT-12100 convert try / finally to use: 'this' receiver is now left as is 2016-12-01 20:39:03 +03:00
Mikhail Glukhikh f513514c53 KT-12100 convert try / finally to use: 'this' cases, implementation via resolved call 2016-12-01 20:38:57 +03:00
Mikhail Glukhikh 59b2608354 "Convert try / finally to .use { } call intention introduced" #KT-12100 Fixed 2016-12-01 20:38:46 +03:00
Nikolay Krasko 6a9c368532 Auto-import does not suggest enum constant (KT-14100)
#KT-14100 Fixed

(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00
Alexey Sedunov cedbac6b43 Safe Delete: Fix exception on deleting Java class used in Kotlin import directive(s)
#KT-14596 Fixed
2016-11-30 14:35:39 +03:00
Alexey Sedunov 465138cfa1 Initialize with Constructor Parameter Intention: Fix IDE freeze on properties in generic class
#KT-14459 Fixed
2016-11-30 14:35:38 +03:00
Alexey Sedunov b29c704a92 Rename: Do not report redeclaration conflict for private top-level declarations located in different files
#KT-14361 Fixed
2016-11-30 14:35:37 +03:00
Alexey Sedunov 24035d2c83 Introduce Type Alias: Forbid nested/local type aliases 2016-11-30 14:35:33 +03:00
Alexey Sedunov 752ae87591 Introduce Type Alias: Support callable references/class literals
#KT-14861 Fixed
2016-11-30 14:35:32 +03:00
Alexey Sedunov 0f58e2eef2 Introduce Type Alias: Replace type usages in constructor calls. Do not replace usages of existing type aliases
#KT-14685 Fixed
2016-11-30 14:35:30 +03:00
Alexey Sedunov 939532b6f3 Introduce Type Alias: Do not suggest type qualifiers
#KT-14693 Fixed
2016-11-30 14:35:28 +03:00