Commit Graph

34414 Commits

Author SHA1 Message Date
Alexey Sedunov ec00b9f3ea Intentions: Implement "Convert sealed class to enum" intention
#KT-14245 Fixed
2016-10-13 19:00:57 +03:00
Alexey Sedunov 2187a77646 Intentions: Implement "Convert enum to sealed class" intention
#KT-14245 In Progress
2016-10-13 19:00:56 +03:00
Alexey Sedunov 02e8d58acd Rename: Forbid on backing field reference
#KT-14285 Fixed
2016-10-13 19:00:55 +03:00
Alexey Sedunov c23c16f1a3 Extract Superclass/Interface: Add filename field to the dialog 2016-10-13 19:00:54 +03:00
Simon Ogorodnik e14a043b0a Fix for KT-10885
Assignment as expression conversion: e.g int i = j = 0
2016-10-13 18:52:44 +03:00
Simon Ogorodnik d731f97c7d Fix KT-13021, KT-13020, Test for already fixed KT-6941
Fixes on javadoc to kdoc comments convert
2016-10-13 18:52:31 +03:00
Simon Ogorodnik 155cfcb1f8 Fix for KT-6424
Remove "SuppressWarnings" and "//noinspection" on java to kotlin conversion
2016-10-13 18:51:48 +03:00
Dmitry Petrov 47b3420a65 Minor: testData fix after rebase 2016-10-13 18:03:00 +03:00
Dmitry Petrov e7ca00d91b Support @SinceKotlin annotation for type aliases. 2016-10-13 17:52:21 +03:00
Dmitry Petrov 8d634f6003 KT-14274: resolve type alias constructors calls in supertypes list as type alias constructors.
Support @Deprecated for type aliases, including type alias constructors.
2016-10-13 17:52:21 +03:00
Dmitry Petrov bee0e783f8 Minor cleanup. 2016-10-13 17:52:21 +03:00
Dmitry Petrov 3d0288ffed Annotations on type aliases: generate synthetic method for type alias annotations. 2016-10-13 17:52:21 +03:00
Dmitry Petrov d2d8f72ffc Annotations on type aliases: typealias is not a "default target".
Add diagnostic test for annotations on type aliases.
2016-10-13 17:52:21 +03:00
Dmitry Petrov 344bb03e8c Annotations on type aliases: add annotation target TYPEALIAS,
use it for @Deprecated and @Suppress.
2016-10-13 17:52:21 +03:00
Dmitry Petrov c6350e1afb Concatenate annotations in type alias expansion. 2016-10-13 17:44:14 +03:00
Mikhail Glukhikh 7a41d13b41 Do not add special names to scopes #KT-14319 Fixed 2016-10-13 17:17:05 +03:00
Dmitry Jemerov 7263109413 advance until-build to 171.* 2016-10-13 16:15:07 +02:00
Dmitry Jemerov b1b171fbc5 correct way to check if intention is applicable; revert: Delete test that is transformed syntax error 2016-10-13 15:45:55 +02:00
takahirom 925c48c2f0 Fix 'in' operator intention for Strings (KT-13974) 2016-10-13 15:45:30 +02:00
takahirom 93c2e7dfc0 KT-13550 Fix Boolean.TYPE does not compile (#969)
* Fix Boolean.TYPE does not compile
2016-10-13 15:02:06 +02:00
Valentin Kipyatkov 29fe63d5a9 More correct code - ensure that equals works correctly! 2016-10-13 15:56:18 +03:00
Valentin Kipyatkov 0399772ee6 KT-9835 Completion thinks receiver is nullable when it is not
#KT-9835 Fixed
2016-10-13 15:11:19 +03:00
Valentin Kipyatkov 7b12dd498f KT-13780 No completion and assertion error in log
#KT-13780 Fixed
2016-10-13 15:10:53 +03:00
Ilya Chernikov 09a3741eb9 Add missing script runtime jar to plugin's lib folder 2016-10-13 10:36:51 +02:00
Dmitry Petrov 71362d6b0a Cleanup and unify RangeCodegenUtil functions. 2016-10-13 10:11:32 +03:00
Vsevolod e788ef408f KT-5044 code cleanup, test added 2016-10-13 10:11:32 +03:00
Vsevolod bd6f83b9b7 KT-5044 intrinsify all contains calls for primitive ranges from stdlib 2016-10-13 10:11:32 +03:00
Vsevolod d7ad27ac3b KT-5044 implement missing Range#contains tests and move it to separate package 2016-10-13 10:11:32 +03:00
Ilya Gorbunov 0b3fb41eeb Do not include $DefaultImpls inner classes in public API when they do not contain any public members (i.e. used only as a container to hold synthetic methods with annotations for properties or typealiases) 2016-10-13 09:52:42 +03:00
Ilya Gorbunov 2c9b2652c1 kotlin-maven-plugin: Add apiVersion parameter linked with kotlin.compiler.apiVersion property.
Test apiVersion parameter is applied as explicitly and as implicitly inferred from languageVersion.
 #KT-14298
2016-10-13 08:37:34 +03:00
Ilya Gorbunov ea51070446 Refactor: make languageVersion configuration parameter common for jvm and js kotlin maven compiler plugin. 2016-10-13 08:37:33 +03:00
Ilya Gorbunov 2a7717214b Annotate new API with @SinceKotlin in kotlin-runtime except reflection and type aliases. 2016-10-13 08:37:31 +03:00
Ilya Gorbunov a57321dea8 Annotate all new API with SinceKotlin in kotlin-stdlib and kotlin-test 2016-10-13 08:37:30 +03:00
Ilya Gorbunov a8f381cabc Annotate with SinceKotlin all in stdlib-jre7 and jre8 2016-10-13 08:37:28 +03:00
Ilya Gorbunov 70c3a0a244 Include new annotations (SinceKotlin, ParameterName) in public API reference. 2016-10-13 08:10:37 +03:00
Ilya Chernikov 0d73d9acc9 Update changelog: add scripting part to 1.1-M02 2016-10-12 22:59:33 +02:00
Alexander Udalov 321a19a247 Make JvmPlatform.defaultImports a stored property
It was incorrectly made a getter-only property in 2f616bdd
2016-10-12 23:30:03 +03:00
Ilya Chernikov ebc8002eb2 Fix output comparison in tests under windows in libraries project as well 2016-10-12 20:29:49 +02:00
Ilya Chernikov d8ecd2641d Fix script tests output comparison and idea jsr223 test dependency on windows 2016-10-12 20:16:15 +02:00
Simon Ogorodnik e7635652bc Fix for KT-14205
If detected unfinished expression it passed through, added warning on action "Convert Java to Kotlin", if Java files contains syntax errors.
2016-10-12 19:01:58 +03:00
Alexander Udalov efc0763c2f Add module dependency script.runtime -> builtins
To prevent balloons that propose to configure Kotlin in the project
2016-10-12 18:54:50 +03:00
Simon Ogorodnik 2a95a4a970 Test for KT-7332, already fixed 2016-10-12 18:16:15 +03:00
Simon Ogorodnik 4710f709ce Fix for KT-10545
//TODO unfix: see KT-14305
2016-10-12 18:10:55 +03:00
Simon Ogorodnik 2c99aac5a9 Post-review fixes, added support for octal escaping definition for char 2016-10-12 17:54:43 +03:00
Simon Ogorodnik a64c45c9fe Fix KT-8091: J2K string with octal escaped chars 2016-10-12 17:54:43 +03:00
Alexander Udalov 383b7f89a6 Annotate ParameterName with SinceKotlin("1.1") 2016-10-12 17:07:10 +03:00
Alexander Udalov ed1490dbc4 Add SinceKotlin("1.1") annotation to new reflection API 2016-10-12 17:07:10 +03:00
Alexander Udalov 8828e671f5 Refactor class lookup in deserialized scopes
Move the logic to DeserializedMemberScope; drop NestedClassDescriptors
2016-10-12 17:07:10 +03:00
Alexander Udalov e1ce6f88d5 Remove extra cache of nested classes from DeserializedClassDescriptor
ClassDescriptor instances are already cached in ClassDeserializer
2016-10-12 17:07:09 +03:00
Alexander Udalov 2f616bdd33 Drop ModuleParameters, inline defaultImports everywhere 2016-10-12 17:07:09 +03:00