Commit Graph

23507 Commits

Author SHA1 Message Date
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
Zalim Bashorov 9d32f5e8ed Minor in JS backend tests: use checkFooBoxIsOk instead of fooBoxIsValue 2015-06-03 23:09:17 +03:00
Zalim Bashorov 92457543bc JS backend: fix equality check for nullable types
* Generate simple check when compare with `null` literal.
* Use Kotlin.equals if type of receiver or argument is nullable.
* Don't call equals method if any of receiver or argument is null (at runtime, not only literal). For more information see KT-4356.

 #KT-7530 fixed
 #KT-7916 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov 6aaccae6a9 JS backend: compare enum entries strictly
#KT-7840 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov 4f0a858e93 JS backend: fix tests after move testTrue and testFalse to common place 2015-06-03 23:09:16 +03:00
Zalim Bashorov 430a3c121d Minor in JS backend: move testFalse and testTrue to common place 2015-06-03 23:09:16 +03:00
Zalim Bashorov ca4ce48801 JS backend: fix compiler crash on for with empty body 2015-06-03 23:09:15 +03:00
Zalim Bashorov f90df7aa35 JS backend: fix compiler crash on empty then if block
#EA-68941 fixed
2015-06-03 23:09:15 +03:00
Zalim Bashorov 779a0373c7 JS backend: generate better code for secondary constructor calls -- don't generate undefined when it possible 2015-06-03 23:09:15 +03:00
Zalim Bashorov 79b5652ce6 JS backend: added test which check that name of classes not mangled when we have a function with the same name in non-public API 2015-06-03 23:09:15 +03:00
Zalim Bashorov 33fb3fb6e4 JS backend: support secondary constructors in native classes 2015-06-03 23:09:15 +03:00
Dmitry Jemerov 08439c541e don't bother calculating possibleResolutionScopes if we aren't going to use them 2015-06-03 20:59:18 +02:00
Pavel V. Talanov f335e9f6b2 Fix a problem where a sequence of out-of-block completions could lead to an inconsistent resolve session provided for a synthetic copy of a file 2015-06-03 21:22:10 +03:00
Natalia Ukhorskaya 7b63dd987c Workaround for bug in Android Plugin: it generates LightFields for files starting from '.' (ex. .DS_Store file)
#KT-6625 Fixed
2015-06-03 16:36:57 +03:00
Alexander Udalov e38bc864d1 Fix heavy integer parsing in FunctionN class factory
#KT-7924 Fixed
2015-06-03 15:37:49 +03:00
Alexander Udalov 6c8f2be1d8 Revert "Fix heavy integer parsing in FunctionN class factory"
This reverts commit 9d493d995e.
2015-06-03 15:32:47 +03:00