Commit Graph

2593 Commits

Author SHA1 Message Date
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
Alexey Sedunov 74cdecd829 Find Usages: Restrict search scope of class object private declarations to
the containing class
2014-12-08 16:30:00 +03:00
Dmitry Jemerov 0512b8ce1a add test to verify output files; correctly handle lambdas 2014-12-08 12:51:08 +01: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
Valentin Kipyatkov de51948883 The test was not correct 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov dfd5e773df extensionsUtils.kt uses FuzzyType + more correct treatment of receiver nullability there 2014-12-03 19:08:06 +03:00
Valentin Kipyatkov 856be73500 Smart completion: generic functions are correctly included into the list
#KT-6375 Fixed
2014-12-03 19:07:04 +03:00
Valentin Kipyatkov a40db1e794 Completion: for extension functions unsubstituted receiver type shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 1d288e6dcc Completion: multiple extension methods with different substitutions may be shown 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 2c08b3e229 Extension methods shown with type arguments substituted in completion list 2014-12-03 19:03:02 +03:00
Valentin Kipyatkov 3df3e57b05 Added tests 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov 05bb32545f Fixed all members are grayed in global context 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov cf35fc1fd5 Completion: immediate members get higher priority in the list 2014-12-03 19:02:20 +03:00
Valentin Kipyatkov 72ff719001 Completion: added package name for global functions/properties in the list 2014-12-03 19:01:48 +03:00
Valentin Kipyatkov 6ddedb7825 Better imported/non-imported items sorting in completion 2014-12-03 19:00:58 +03:00
Valentin Kipyatkov 94b7945cd8 Added a test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 48edd5f02a Fixed completion list ordering for java classes 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 9dc6a82fef More clear code + better test 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov 6502c44928 Immediate extension members are correctly detected for platform types 2014-12-03 19:00:57 +03:00
Valentin Kipyatkov acfd308a7e Code completion: graying members after dot completion for nullable value 2014-12-03 19:00:57 +03:00
Natalia Ukhorskaya 3ab7c6c8e9 Evaluate Expression: fix for anonymous objects - expressions where anonymous type can be replaced with super type can be evaluated 2014-12-03 12:49:40 +03:00
Natalia Ukhorskaya b056fd7e2e Add test for completion with runtime type cast 2014-12-03 12:49:38 +03:00
Andrey Breslav 7f0df032b4 Highlight dynamic calls in the editor 2014-12-01 20:43:41 +03:00
Andrey Breslav 28b466d069 Parsing dynamic types 2014-12-01 20:43:37 +03:00
Valentin Kipyatkov 016af0b53c Code completion: shorter presentation for member extensions 2014-11-28 15:33:28 +03:00
Valentin Kipyatkov c1252c7963 Do not search inheritors of Any 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov 9af2877f97 Inheritors in smart completion work for the classes in the same file too 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov 4acf668ab8 Smart completion of inheritors: correct filtering of duplicates 2014-11-28 15:33:27 +03:00
Valentin Kipyatkov 85825e0ab1 Smart completion includes object's from scope before searching for inheritors
#KT-6123 Fixed
2014-11-28 15:33:27 +03:00
Valentin Kipyatkov 52acd223a2 Fixed KT-5211 Code completion in IntelliJ for generating anonymous class creates code with compile error "Projections are not allowed for immediate arguments of a super type"
#KT-5211 Fixed
2014-11-28 15:33:26 +03:00
Valentin Kipyatkov 3566ac1510 Code completion: added type parameters for Kotlin classes too 2014-11-28 15:33:26 +03:00
Valentin Kipyatkov 820c2c7cd8 Smart completion: inheritors instantiation suggested + fixed a bug with incorrect presentation of generic java class instantiation 2014-11-28 15:33:26 +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
Alexey Sedunov 591c409854 Change Signature: Process Kotlin-based usages when changing signature of the Java function 2014-11-26 13:07:38 +03:00
Alexey Sedunov 1008225116 Change Signature: Processing of non-Kotlin usages
#KT-5810 Fixed
 #KT-4187 Fixed
2014-11-26 13:07:33 +03:00
Alexey Sedunov c80c866d82 Change Signature: Rename parameter in overriding functions
#KT-4045 Fixed
2014-11-26 13:07:31 +03:00
Alexey Sedunov ddccc0e640 Change Signature: Update enum entries w/o delegation specifier when changing signature of enum class constructor
#KT-5978 Fixed
2014-11-26 13:07:29 +03:00
Alexey Sedunov 5bfdb8ee60 Change Signature: Do not add default values to parameters of overriding functions
#KT-6160 Fixed
2014-11-26 13:07:28 +03:00
Alexey Sedunov d597c98445 Extract Function: Fix NPE when extracting this in object
#KT-6238 Fixed
2014-11-26 13:07:27 +03:00
Nikolay Krasko 722624f0a4 Add test about platform static checks in ide 2014-11-25 17:16:15 +03:00
Valentin Kipyatkov 32a13502c5 Fixed one of the cases with lambda's returning Nothing 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov bd8eaeedaa Added tests for lambda's returning Nothing (currently do not work) 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov 6cb6a907d7 Changed test output from line comments to block comments 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov 0f59622a44 Checked that partial body resolve works for property delegating 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov 0b56760910 Partial body resolve works for property accessor body 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 8ccf56415a Partial body resolve filter: fixed nested loops case 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov cc84e9682b Partial body resolve: corrected it for explicit function type but unfortunately it does not work for non-explicit type yet 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 058af69078 Partial body resolve: added more tests 2014-11-24 20:11:27 +03:00
Valentin Kipyatkov 2f19713cc2 Partial body resolve: rewritten algorithm of filter building to ensure correct resolve of smart cast points (+ prepared to support more strict mode for resolve only) 2014-11-24 20:11:27 +03:00