Commit Graph

520 Commits

Author SHA1 Message Date
Natalia Ukhorskaya 351e1863fc J2K: Support for method references
#KT-8721 Fixed
2015-08-24 12:37:41 +03:00
Dmitry Jemerov 341f09afd3 rename platformStatic to jvmStatic 2015-08-21 16:59:05 +02:00
Valentin Kipyatkov aaaf033338 Added diagnostic for EA-69526 - assert: JavaToKotlinConverter.checkReferenceValid 2015-08-18 18:50:00 +03:00
Valentin Kipyatkov 21639c4785 J2k post-processings based on diagnostics are included into the common scheme 2015-08-13 17:29:01 +03:00
Valentin Kipyatkov e66d0f71ac Implemented more general scheme of post-processing with intentions in J2K + added replacement of get/set with property access there 2015-08-13 17:29:00 +03:00
Sergey Mashkov 2f7193064f #KT-8708 migrate tests to new trimIdent() and prependIndent 2015-08-13 14:40:07 +03:00
Sergey Mashkov c0078a53e6 Temporary move trimIndent implementations to tests as private members to avoid resolution ambiguity 2015-08-12 18:45:10 +03:00
Mikhail Glukhikh 3f14e74b08 Drop old enum syntax. Comma / semicolon are now a syntactic part of enum entry.
Comma must present now between enum entries, semicolon between last entry & first member, constructor calls must be without colons / specifiers.
A swarm of tests fixed accordingly.
2015-08-11 10:38:10 +03:00
Alexey Sedunov e331f13a32 J2K Converter: Support class references as top-level elements 2015-08-07 23:30:09 +03:00
Mikhail Glukhikh 4bd48c4796 Regular modifier checker implemented (initial version). A set of tests fixed accordingly.
Most of modifier diagnostic is expressed by REDUNDANT_MODIFIER, INCOMPATIBLE_MODIFIERS, REPEATED_MODIFIER, WRONG_MODIFIER_TARGET, WRONG_MODIFIER_PARENT.
A set of modifier diagnostics is not in use now (but not deleted yet).
2015-08-03 19:41:50 +03:00
Natalia Ukhorskaya ad6611b930 J2K: If last expression in Method Call is Lambda add it outside the parenthesis 2015-07-30 10:00:26 +03:00
Natalia Ukhorskaya 40d2fd7994 J2K: Do not skip any unknown expression 2015-07-30 10:00:26 +03:00
Natalia Ukhorskaya 28f0866467 J2K: Convert Java8 lambdas properly
#KT-7149 Fixed
2015-07-30 10:00:26 +03:00
Natalia Ukhorskaya 8759601ef6 J2K: extract base class for Parameter 2015-07-30 10:00:25 +03:00
Natalia Ukhorskaya f713e66484 Minor: move methods 2015-07-30 10:00:25 +03:00
Natalia Ukhorskaya 3ab53eb5e3 Minor: change parameters order 2015-07-30 10:00:24 +03:00
Natalia Ukhorskaya c86b25b1dc Make j2k depends on idea-core instead of idea-full 2015-07-30 10:00:24 +03:00
Natalia Ukhorskaya 22ee063269 Add platformStatic annotation to main method from java
#KT-8219 Fixed
2015-07-30 10:00:24 +03:00
Natalia Ukhorskaya b54da25108 J2K: do not convert doc comments on WebDemo
#KT-7968 Fixed
2015-07-30 10:00:23 +03:00
Mikhail Glukhikh 00eaec766d Function name fixed in AnnotationConverter 2015-07-29 11:37:16 +03:00
Valentin Kipyatkov 9d84e4b60a Fixed EA-70681 2015-07-28 22:39:32 +03:00
Mikhail Glukhikh a86857fbb5 Java Deprecated is mapped in accordance with Java Target / Retention, some diagnostic changed 2015-07-28 17:13:37 +03:00
Mikhail Glukhikh f551d64ea2 Refactoring: AnnotationTarget / AnnotationRetention renamed to KotlinTarget / KotlinRetention
(for not clashing with the same built-in classes)
2015-07-22 19:01:25 +03:00
Dmitry Jemerov af722c8acd code cleanup: j2k module 2015-07-21 16:20:09 +02:00
Mikhail Glukhikh cf26310042 Java to Kotlin annotation target mapping: relevant fix for J2K 2015-07-21 15:20:34 +03:00
Denis Zharkov 97af85da9c Change default upper bound of Java type parameters to Any!
#KT-7672 Fixed
2015-07-21 15:16:05 +03:00
Valentin Kipyatkov 283c8668f5 Don't use PsiElement.getReference() on JetElement 2015-07-16 13:49:17 +03:00
Denis Zharkov 5c60a1bdb8 Make project compilable after PurelyImplements annotation introduction 2015-07-09 16:36:48 +03:00
Denis Zharkov 151231ef1a Adjust testData
Standard JDK collections purely implement kotlin.Mutable* with non-platform arguments
2015-07-09 16:36:47 +03:00
Denis Zharkov 0a19fb7df2 Make project compilable after types enhancement 2015-07-09 16:36:46 +03:00
Valentin Kipyatkov 26f72d0935 MInor corrections after code review 2015-07-06 16:48:51 +03:00
Valentin Kipyatkov c75a18291c KT-7918 J2K: don't generate jvmOverloads on private declarations
#KT-7918 Fixed
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov 4c80db9249 KT-8110 J2K: Don't convert "==" to "===" for enum classes
#KT-8110 Fixed
2015-07-06 16:48:51 +03:00
Valentin Kipyatkov 767e21db76 J2K - no '@' required for primary constructor annnotations 2015-07-06 16:48:51 +03:00
Valentin Kipyatkov 8e3c793760 Used named arguments for clarity 2015-07-06 16:48:50 +03:00
Valentin Kipyatkov 67cf180aba Code clarification 2015-07-06 16:48:50 +03:00
Valentin Kipyatkov d3402280c5 Extracted methods 2015-07-06 16:48:50 +03:00
Valentin Kipyatkov 40fe680acf J2K: preserving line breaks between arguments 2015-07-06 16:48:50 +03:00
Valentin Kipyatkov fefb828fae J2K: preserving line breaks between parameters 2015-07-06 16:48:50 +03:00
Valentin Kipyatkov 1e988028a9 Optimization 2015-07-06 16:48:49 +03:00
Valentin Kipyatkov 403549b924 Renames 2015-07-06 16:48:49 +03:00
Valentin Kipyatkov 6679a6912e Memory optimizations + more clear code 2015-07-06 16:48:49 +03:00
Valentin Kipyatkov fdff2c7153 J2K: preserving line breaks between enum members from original code 2015-07-06 16:48:49 +03:00
Ilya Gorbunov 6d4e48ab9a Compiler&plugin deprecations cleanup: string operations. 2015-06-29 17:06:43 +03:00
Ilya Gorbunov 32144257ec Compiler&plugin deprecations cleanup: length, size, indices, tail and other collection operations. 2015-06-29 17:06:28 +03:00
Ilya Gorbunov 2c31a1a345 Compiler&plugin deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray. 2015-06-29 17:06:12 +03:00
Denis Zharkov d18c1ca32e Update J2K behavior with empty jdk annotations 2015-06-23 16:44:46 +03:00
Nikolay Krasko 53ab02e877 Generate private constructors for enums in coverter 2015-06-23 15:59:29 +03:00
nik 3136e5eefd removed registration of deprecated extensions points without implementations 2015-06-23 15:59:24 +03:00
Natalia Ukhorskaya ba6b378378 Fix tests: register JavaClassSupers service in WebDemoTest 2015-06-23 15:59:17 +03:00