Commit Graph

23122 Commits

Author SHA1 Message Date
Pavel V. Talanov 812273cb2b Fix a problem when invoking completion outside of source roots could lead to declarations from index being analyzed in a wrong resolution facade 2015-06-04 18:36:05 +03:00
dnpetrov 50ea67ba13 KT-5524 Support [platformName] annotation for class members
@platformName is now supported for final non-overriding class member functions
(including property accessors).
Front-end provides diagnostics for inapplicable annotation cases.
Code generation updated:
- ignore kotlin.platform.platformName annotation for Java class methods;
- bridges generation generates proper JVM declarations in case of methods renamed with @platformName.
@platformName-related tests added.

#KT-5524 Fixed
2015-06-04 17:54:08 +03:00
Evgeny Gerashchenko 0bf249d6ae Do not recompile module when anonymous object or local class is changed. 2015-06-04 17:50:14 +03:00
Evgeny Gerashchenko 6403ef39eb KT-7521 Compilation problem of dependent modules with different jdks
#KT-7521 fixed
2015-06-04 17:50:13 +03:00
Valentin Kipyatkov 200c6446be Probably fixed EA-69004 2015-06-04 17:23:20 +03:00
Valentin Kipyatkov f05789e224 Fixed EA-69042 2015-06-04 17:21:28 +03:00
Valentin Kipyatkov e597532c7a KT-7815 Smart completion after "as" inserts fq-name for type parameter
#KT-7815 Fixed
2015-06-04 17:21:28 +03:00
Valentin Kipyatkov d3e4b346ce Deprecated symbols made less priority than named parameters 2015-06-04 17:21:28 +03:00
Valentin Kipyatkov 54836113a7 Better test data format 2015-06-04 17:21:28 +03:00
Valentin Kipyatkov 603f7ef3c1 KT-7756 Completion of "return null", "return true" and "return false"
#KT-7756 Fixed
2015-06-04 17:21:27 +03:00
Ilya Gorbunov 009baa11fc Specific wording in exception message for String methods. 2015-06-04 16:45:55 +03:00
Ilya Gorbunov a1d8e9d633 Provide dropLast and takeLastWhile methods. Optimize special cases of drop/take/dropLast/takeLast (when n is equal to zero or size of collection). 2015-06-04 16:32:25 +03:00
Ilya Gorbunov 9f85fa9720 Make proposed split replacement equivalent in behavior with additional dropLastWhile call.
#KT-7887
2015-06-04 16:32:23 +03:00
Ilya Gorbunov 9b17220baa Provide dropLastWhile for Arrays, Lists and Strings. 2015-06-04 16:32:21 +03:00
Ilya Gorbunov 705c9089f0 Provide replacement for methods deprecated in favor of SAM-constructors.
Provide replacement for isNotEmpty on nullable receiver.
JS: Provide SAM-like constructor for Runnable.
2015-06-04 16:32:19 +03:00
Ilya Gorbunov 13c89b7ae9 Provide lineSequence() extension method instead of BufferedReader.lines() in order not to conflict with JDK8 instance method with the same name. 2015-06-04 16:32:17 +03:00
Michael Bogdanov dee26957d1 Tests for obsolete KT-4798, KT-7288, KT-7046
#KT-4798 Obsolete
 #KT-7288 Obsolete
 #KT-7046 Obsolete
2015-06-04 16:28:08 +03:00
Valentin Kipyatkov 9e27e208ef Made test data correct 2015-06-04 16:20:30 +03:00
Valentin Kipyatkov 6751a1d440 DeprecatedSymbolUsageFix: keeping explicit type arguments in original form 2015-06-04 16:20:30 +03:00
Valentin Kipyatkov 9f1fbe20dc Extracted methods 2015-06-04 16:20:30 +03:00
Valentin Kipyatkov a26c62ab0f KT-7895 Auto replace for deprecated (ReplaceWith) loses generic type
#KT-7895 Fixed
2015-06-04 16:20:29 +03:00
Valentin Kipyatkov f14615315d KT-5482 Redundant type arguments are not detected in some cases
#KT-5482 Fixed
2015-06-04 16:20:29 +03:00
Denis Zharkov 9802931a90 Remove variables with empty ranges from local vars table
As their ranges may intersect after dead code elimination that leads to VerifyError
2015-06-04 16:11:02 +03:00
Denis Zharkov 310babefdf Minor, Rename InsnStream -> InsnSequence 2015-06-04 16:11:02 +03:00
Denis Zharkov 8da3f53404 EA-53937: Drop failing assertion about no-name val in annotation 2015-06-04 16:11:02 +03:00
Denis Zharkov 0e718fbaab Introduce UNKNOWN visibility as default in FunctionDescriptor
It's needed to prevent NPE when requesting non-nullable visibility of descriptor
before `initialize` has been called.
Currently it happens because of indirect calls of `DescriptorUtils.isLocal`
between descriptor creation and it's initialization.
2015-06-04 16:11:02 +03:00
Denis Zharkov 4f85afb3f0 Fix DescriptorUtils.isLocal semantics
Non-member descriptors, e.g. type parameters, value parameters that defined in local function should be local too
Otherwise a lot of exceptions happens when resolving references within anonymous objects
2015-06-04 16:11:02 +03:00
Nikolay Krasko e874ad9cbb Remove getting stacktrace in internal mode 2015-06-04 15:33:16 +03:00
Nikolay Krasko 46ddb1958f Update IDEA to 141.1383.1 2015-06-04 15:33:14 +03:00
Valentin Kipyatkov 6e7fd19d8e KT-7695 Java to Kotlin converter incorrectly generates a cast to non-nullable type
#KT-7695 Fixed
2015-06-04 15:11:48 +03:00
Valentin Kipyatkov 1fa777f3c3 Fixed EA-60042 2015-06-04 15:11:48 +03:00
Valentin Kipyatkov 142ee0ce70 Fixed EA-65709 2015-06-04 15:11:47 +03:00
Michael Bogdanov 83f04501be Remove error diagnostic from return in multideclaration
#KT-5100 Fixed
2015-06-04 12:01:59 +03:00
Dmitry Jemerov a321e8eef5 performance counters infrastructure 2015-06-04 10:20:19 +02:00
Valentin Kipyatkov a3a33ce089 Minor code improvements + more correct code 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov 9c0d607894 Replace "||" with "&&" (and the opposite) made more clever about negating expressions 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov ac6ef6b544 KT-7454 Replace "||" with "&&" adds unnecessary parethesis
#KT-7454 Fixed
2015-06-04 01:05:50 +03:00
Valentin Kipyatkov 1a0f8a5070 Maybe it will fix EA-67317 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov b73ebad167 Fixed EA-66035 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov 4957495cf3 Migrated to use of modern API 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov fd4a634001 Fixed EA-66835 2015-06-04 01:05:50 +03:00
Valentin Kipyatkov 6d2d054b3b Refactored ShowExpressionTypeAction to work for variable type 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov 5d9259e9a4 Refactored ShowExpressionTypeAction 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov 5a50423ae5 Converted to Kotlin 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov 4169a78e6f Removing unnecessary uses of analyzeFully 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov cd68cefba1 Added diagnostic for EA-68663 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov 7be59f969c Fixed EA-68869 2015-06-04 01:05:49 +03:00
Valentin Kipyatkov 662cc325f4 Never invoke intention action when it's not available 2015-06-04 01:05:48 +03:00
Valentin Kipyatkov 9b32bb8894 Fixed EA-68922 2015-06-04 01:05:48 +03:00
Valentin Kipyatkov 6010876c95 Fixed EA-68937 2015-06-04 01:05:48 +03:00