Commit Graph

22934 Commits

Author SHA1 Message Date
Valentin Kipyatkov 08cf8065ea DeprecatedSymbolUsageFix to keep line breaks when possible 2015-05-28 16:14:15 +03:00
Valentin Kipyatkov 5e5e71882e Code cleanup to work more reliably with nested problems 2015-05-28 13:45:24 +03:00
Valentin Kipyatkov 2b61bca6dd Code cleanup includes deprecated symbol usage fixes + code cleanup does not crash on nested usages to fix 2015-05-28 13:45:24 +03:00
Valentin Kipyatkov d415b0c74d Fixed critical bug in DeprecatedSymbolUsageFix 2015-05-28 13:45:07 +03:00
Zalim Bashorov 68eca8bc00 JS backend: add the support secondary constructors 2015-05-28 11:06:06 +03:00
Zalim Bashorov 016534b487 Minor: change package in astUtils.kt: ast -> jsAstUtils 2015-05-28 11:06:05 +03:00
Zalim Bashorov cb37ae5d1e Minor: add "ctor" to dictionary 2015-05-28 11:06:04 +03:00
Zalim Bashorov e11d61d68a JS backend: move all class creation logic from FileDeclaration to ClassTranslator 2015-05-28 11:06:04 +03:00
Zalim Bashorov 6e7be78b98 Minor improvments in ClassTranslator after conversion 2015-05-28 11:06:03 +03:00
Zalim Bashorov c589026a47 Convert ClassTranslator.java to Kotlin 2015-05-28 11:06:02 +03:00
Zalim Bashorov b61c1376a2 ClassTranslator.java -> ClassTranslator.kt 2015-05-28 11:06:02 +03:00
Zalim Bashorov ef5ee5100a JS backend: make CallTranslator more comfortable to use from java 2015-05-28 10:38:30 +03:00
Zalim Bashorov 68f851cbdc Move JvmCodegenUtil#getDelegationConstructorCall to common place (BindingContextUtils) 2015-05-28 10:30:54 +03:00
Zalim Bashorov f3f799aab5 Fix secondary constructor tests for JS -- use non-zero fracitional part 2015-05-28 10:25:12 +03:00
Zalim Bashorov 3fe363e72b Minor: split test to access to companion and to nested object 2015-05-28 10:25:11 +03:00
Zalim Bashorov dc1b91eacd JS: prepare tests for secondary constructors 2015-05-28 10:24:48 +03:00
Zalim Bashorov 72c2648fc8 JS frontend: remove diagnostics about the secondary constructors are not supported 2015-05-28 10:24:47 +03:00
Alexander Udalov d14e5b8a72 Restore and deprecate Function{n}/ExtensionFunction{n} classes for easier migration
Users' Java code will not break in common cases (when passing functions to
Kotlin), and deprecation warnings will be reported.

Provide an inspection with a quick fix which allows to replace deprecated
function class usages to the new classes. Include this fix to the "code
cleanup" action
2015-05-28 01:20:05 +03:00
Ilya Gorbunov 851007cc6c Fix output of test that relied on the documentation wording. 2015-05-28 00:36:00 +03:00
Valentin Kipyatkov ce40ed1385 J2K: use arrayOf instead of array and similar 2015-05-28 00:17:04 +03:00
Valentin Kipyatkov 002312f98a Import of KClass inserted when needed on conversion to Kotlin on paste 2015-05-28 00:17:04 +03:00
Valentin Kipyatkov f687a40136 Conversion to Kotlin on paste: supported for annotation 2015-05-28 00:17:04 +03:00
Valentin Kipyatkov 098b313a32 Moved method 2015-05-28 00:17:04 +03:00
Valentin Kipyatkov ce9a986524 J2K: updated to use of Kotlin's KClass instead of Java's class in annotation declarations and usages 2015-05-28 00:17:04 +03:00
Valentin Kipyatkov 0a2983d602 J2K: converting of enum constants overriding members 2015-05-28 00:17:03 +03:00
Valentin Kipyatkov bb0b3fcd0c J2K: updating generated enums to modern syntax 2015-05-28 00:17:03 +03:00
Valentin Kipyatkov f89cff8b78 "trait" -> "interface" 2015-05-28 00:17:03 +03:00
Valentin Kipyatkov 87cb36e8e9 Updating java to kotlin convert to new language syntax 2015-05-28 00:17:03 +03:00
Ilya Gorbunov 802ca5476d Clarify requirements for limit parameter in split method. Provide replacement for deprecated split(regex: String). 2015-05-27 23:28:06 +03:00
Ilya Gorbunov ea85290939 Annotate deprecated members with proposed replacement. 2015-05-27 22:29:37 +03:00
Ilya Gorbunov 953bbef08c Allow to specify replacement for deprecated items in generated code. 2015-05-27 22:29:35 +03:00
Ilya Gorbunov fa24db435d Stdlib documentation: clarified toMap behavior when a duplicate key is encountered. 2015-05-27 22:29:33 +03:00
Ilya Gorbunov 1fb4183bbb Prettify kdocs in stdlib, part 2. 2015-05-27 22:16:19 +03:00
Ilya Gorbunov 5c8c58f702 Prettify kdocs in stdlib, part 1. 2015-05-27 22:16:17 +03:00
Ilya Gorbunov ae60f7a32f Prettify kdocs and exception messages in the generated code. 2015-05-27 22:16:15 +03:00
Mikhail Glukhikh fe49a2ee51 Build fix 2015-05-27 23:40:40 +02:00
Dmitry Jemerov a41205fff7 Allow calling KotlinCacheService.getResolutionFacade() with an empty set of Kotlin files.
This is needed in Dokka, where a project to be documented can contain only Java files, but we will still attempt to resolve links in Markdown files containing package documentation through the KDoc reference resolver. The attempts will fail when there are no Kotlin files, but at least we won't crash trying to retrieve the first element of an empty list.
2015-05-27 19:22:19 +02:00
Mikhail Glukhikh 3ad06f169d Solution for EA-66870: Foo<in *> and Foo<out *> types are now treated as incorrect.
#EA-66870  Fixed.
2015-05-27 19:07:46 +03:00
Mikhail Glukhikh 9b50705a0e Warning fixed 2015-05-27 19:07:43 +03:00
Mikhail Glukhikh 4fb331ecd3 Solution for KT-7838: now data flow information at the end of when expression is determined correctly.
#KT-7838  Fixed.
2015-05-27 19:07:41 +03:00
Alexey Sedunov 9e69b74a15 Extract Function: Extract smart-cast value as parameter
#KT-7576 Fixed
2015-05-27 18:41:42 +03:00
Michael Bogdanov e20a5121c7 Support private package properties in inline functions 2015-05-27 18:09:40 +03:00
Denis Zharkov be9cc2e91b Change color scheme for annotations
Use same color as for modifiers, but with plain font type
2015-05-27 17:41:27 +03:00
Denis Zharkov 53e9234ea9 Add quickfix for replacing positioned arguments in Java annotation 2015-05-27 17:41:27 +03:00
Ilya Gorbunov 0c818767a6 Replace usages of renamed overloads annotation. 2015-05-27 17:26:07 +03:00
Dmitry Jemerov 966df199bb move KDocFinder to idea-analysis package 2015-05-27 15:41:47 +02:00
Valentin Kipyatkov a71710f589 DeprecatedSymbolUsageInWholeProjectFix: removed notification dialog 2015-05-27 16:15:56 +03:00
Valentin Kipyatkov 18ddac0249 Corrected formatting in test data 2015-05-27 16:15:55 +03:00
Valentin Kipyatkov eadfa72480 Fixed formatter for EOL comments (via hack) 2015-05-27 16:15:55 +03:00
Valentin Kipyatkov 55acce5e0d Minor 2015-05-27 16:15:55 +03:00