Commit Graph

309 Commits

Author SHA1 Message Date
Pavel V. Talanov a701cb2bd9 Add quick fix to replace all 'class object's in project 2015-03-10 18:21:33 +03:00
Pavel V. Talanov 81f9d34d1a Add quick fix for deprecated 'class object' syntax 2015-03-10 18:21:33 +03:00
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Nikolay Krasko 4d1c2ab0e3 Suppress action generally because of updated constant in action 2015-03-06 12:56:42 +03:00
Evgeny Gerashchenko 7b6f83815c Unified obtaining psi element for descriptor. Now code for finding effective descriptors of fake override and finding source element for original declarations are separated. Old method DescriptorToSourceUtils.descriptorToDeclaration is still there, because it has ~90 usages. 2015-03-05 15:19:29 +03:00
Pavel V. Talanov 48fbce9582 Refactor: process mentions of class object
Rename usages that refer to "default object" concept now
Test data file names are left as is
2015-03-03 20:57:08 +03:00
Alexey Sedunov a21163b8c4 Change Signature: Add test for KT-4013 "'Change signature' does not add necessary imports"
#KT-4013 Fixed
2015-02-20 19:08:19 +03:00
Alexey Sedunov 2af83c58c9 Create from usage: Use separate editor for templates which should be placed in Java files 2015-02-20 19:08:14 +03:00
Alexey Sedunov 6bdff82c3a Create from usage: Do not create functions/properties from import directives 2015-02-20 19:08:11 +03:00
Alexey Sedunov 41d51e0a13 Create from usage: Assume String return type for function whch is called inside of string template
#KT-6083 Fixed
2015-02-20 19:08:08 +03:00
Alexey Sedunov 0ae69e0d3e Create from usage: Do not generate function body if it's declared as a trait member
#KT-6078 Fixed
2015-02-20 17:28:41 +03:00
Alexey Sedunov 60d02dab0f Create from usage: Support generation of nested Java classes from usages in Kotlin code 2015-02-20 17:28:40 +03:00
Alexey Sedunov 5cd477279b Create from usage: Support static Java members 2015-02-20 17:28:39 +03:00
Alexey Sedunov 19fc9adffa Create from usage: Support generation of Java fields from usages in Kotlin code 2015-02-20 17:28:38 +03:00
Alexey Sedunov 34d8e1c08c Create from usage: Support generation of Java methods from usages in Kotlin code 2015-02-20 17:28:37 +03:00
Alexey Sedunov 97b0f50d35 Create from usage (function/property): Suggest separate actions for extensions and non-extension declarations
#KT-6023 Fixed
2015-02-20 17:28:36 +03:00
Pavel V. Talanov 9cf3a11efc Add quick fixes for newly introduced diagnostics 2015-02-20 14:47:37 +03:00
Valentin Kipyatkov 0a363fc371 Import is placed in some specific order on adding 2015-02-19 11:07:02 +03:00
Valentin Kipyatkov 7ad1933695 Dropped obsolete tests 2015-02-19 11:07:01 +03:00
Nikolay Krasko 440cc20ed9 Add expected action 2015-02-18 18:51:56 +03:00
Pavel V. Talanov d9d3f68a39 Drop JetClassObject element and its usages
as class objects are now represented by JetObjectDeclaration element
2015-02-16 15:38:31 +03:00
Valentin Kipyatkov b091eaa3cd Fixed KT-2483 "Add import" quick fix offers adding import to non-API class
#KT-2483 Fixed
2015-02-12 18:18:02 +03:00
Valentin Kipyatkov 546836d5dd Fixed bug with importing some of SAM-constructors and factory functions
#KT-3449 Fixed
2015-02-12 18:18:01 +03:00
Alexey Sedunov e75bd1b41b Create from usage: Support extension members for Java classes 2015-02-11 14:45:14 +03:00
Valentin Kipyatkov c915d2b0cd Auto-import popup uses new algorithm for import insertion 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 033b626a08 Fixed test data 2015-02-09 13:02:04 +03:00
Valentin Kipyatkov 5d516a5f72 No need to shorten non-affected references in quickfixes 2015-02-09 12:56:00 +03:00
Valentin Kipyatkov ca2a46e42f Auto-import popup to work for ambiguous class name 2015-02-09 12:55:22 +03:00
Alexey Sedunov 03e076aba3 Intentions: function <-> property conversion 2015-02-05 23:12:38 +03:00
Alexey Sedunov 57763e10e0 Create from usage: make new member function/property private by default
#KT-6689 Fixed
2015-02-04 23:38:16 +03:00
Alexey Sedunov eac735e91a Change parameter type: Make parameter type nullable (instead of Nothing?) if null is passed as an argument
#KT-6634 Fixed
2015-02-04 23:38:14 +03:00
Andrey Breslav fecf6f9fdf Star projection information preserved in substitutions
#KT-6700 Fixed
2015-02-02 19:52:01 +03:00
Evgeny Gerashchenko 378d00bbad Quick fix for unused symbol inspection. 2015-01-22 15:26:45 +03:00
Valentin Kipyatkov 77a560775f KT-6628 Allow imports of classes from root package
#KT-6628 Fixed
2015-01-21 20:10:18 +03:00
Valentin Kipyatkov 7ce3925d71 Removed USELESS_HIDDEN_IMPORT error for it cannot happen anymore 2015-01-21 20:10:17 +03:00
Alexey Sedunov b40e657180 Create from usage: Create constructor parameter by reference in delegation specifier
#KT-6601 Fixed
2015-01-19 20:58:55 +03:00
Nikolay Krasko 6215b3962c Fix warning and and test fail 2015-01-13 12:37:19 +03:00
Alexander Udalov 0b64f028b6 Rename jet -> kotlin in idea: quickfixes
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
2015-01-13 01:14:36 +03:00
Alexey Sedunov 59d646bc16 Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property
#KT-6290 Fixed
2015-01-12 22:55:30 +03:00
Alexey Sedunov 05a0481efa Formatter: Fix spacing between '=' and '{' in property accessors 2014-12-23 20:43:19 +03:00
Alexey Sedunov 4ecd3726b3 Create parameter from usage: Support named arguments 2014-12-14 19:32:48 +03:00
Svetlana Isakova da8fdbd23e More tests for varargs updated 2014-12-12 23:08:28 +03:00
Alexey Sedunov 51d4d3135e Change return type quick-fix: Add support of constant expressions
#KT-6260 Fixed
 #KT-6404 Fixed
2014-12-11 17:50:33 +03:00
Alexey Sedunov 2009cc3e9e Create parameter from usage: Support UNRESOLVE_REFERENCE_WRONG_RECEIVER diagnostic
#KT-6431 Fixed
2014-12-11 17:50:32 +03:00
Alexey Sedunov 346d9ea0c5 Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion) 2014-12-11 17:50:31 +03:00
Alexey Sedunov b1f82d7a23 Quick Fixes: Add test for KT-6430 (Create parameter quick fix inserts platform types into Kotlin code) 2014-12-11 17:50:28 +03:00
Alexey Sedunov c6541ccc6f Change Signature: Do not insert new-lines between parameters (to be fixed later at the formatter level) 2014-12-08 16:30:02 +03:00
Nikolay Krasko e2bf8b2eee Suppress warning to avoid spontaneous addition actions 2014-12-05 19:07:46 +03:00
Valentin Kipyatkov 7ba11b0f2f Fixed auto-import of operator functions broken before + fixed bug in its implementation 2014-12-03 21:09:29 +03:00
Alexander Udalov a7b88e9485 Make CharSequence.length a function instead of property
And String.length as well.

This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.

A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)

 #KT-3571 Fixed
2014-11-27 20:38:17 +03:00