Commit Graph

11312 Commits

Author SHA1 Message Date
Mikhail Glukhikh 9295624378 Unused imports removed 2015-06-02 11:11:19 +03:00
Mikhail Glukhikh dea2ec9da6 When now tries to smart cast subject to not-null if contains no null case #KT-7857 Fixed
Some new tests + some fixed tests
2015-06-02 10:56:21 +03:00
Mikhail Glukhikh de12771c0f Warning generation on non-exhaustive whens over enums + a set of tests + fixed test #KT-6227 Fixed 2015-06-02 10:56:17 +03:00
Mikhail Glukhikh 969993bd09 Fix for EA-68871 #EA-68871 Fixed 2015-06-02 10:56:13 +03:00
Alexander Udalov 06dafef4cc Add test on no 'kotlin.reflect.jvm.internal.impl' package in project code 2015-06-01 19:23:11 +03:00
Alexander Udalov 9cd835a5f8 Refactor and optimize JetCodeConformanceTest
Combine all tests that iterate over all files in the project. This should speed
up the test substantially, especially on slow file systems
2015-06-01 19:23:11 +03:00
Alexander Udalov 41d2e378f8 Convert JetCodeConformanceTest to Kotlin: prettify 2015-06-01 19:23:11 +03:00
Alexander Udalov fca662af91 Convert JetCodeConformanceTest to Kotlin: invoke J2K 2015-06-01 19:23:10 +03:00
Alexander Udalov 8cf04ce966 Convert JetCodeConformanceTest to Kotlin: move .java -> .kt 2015-06-01 19:23:10 +03:00
Alexander Udalov 12a6461006 Report 'free function called as extension' on Function subclasses
You can't make a value of some type invokable as an extension by adding
'extension' annotation to the type
2015-06-01 19:23:10 +03:00
Alexander Udalov 596d378962 Fix abstract method error: implement arity in function references 2015-06-01 19:23:09 +03:00
Alexander Udalov 803fb82b8b Minor, move compiler.pro out of project root 2015-06-01 19:23:09 +03:00
Alexander Udalov 28addcf8e7 Do not generate annotations of method parameters on its $default synthetic method
#KT-7892 Fixed
2015-06-01 19:23:08 +03:00
Alexander Udalov 4f77b44ac3 Minor, move constant to the proper place 2015-06-01 19:23:08 +03:00
Alexander Udalov df4d5a3ae2 Fix initialization order of enum entries and companion
#KT-5761 Fixed
2015-06-01 19:23:08 +03:00
Alexander Udalov 7ba0dda29c Check compileJavaAgainstKotlin tests with .txt files 2015-06-01 19:23:07 +03:00
Evgeny Gerashchenko 88e8988b18 Stabilized order of bytecode for when mappings initialization. 2015-06-01 19:02:13 +03:00
Evgeny Gerashchenko 36915bf846 Enabled incremental compilation by default. 2015-06-01 19:02:12 +03:00
Evgeny Gerashchenko 7de531fe09 Fixed package proto for circular dependencies. Case when package is present in different modules which depend on each other. We should generate separate package facades for this case. 2015-06-01 19:02:11 +03:00
Valentin Kipyatkov 8fd6a64be9 Refactored methods for val/var in PSI 2015-06-01 18:23:34 +03:00
Valentin Kipyatkov d74ac4d08a Override/implement members dialog: no qualified type names in signatures but qualified owner class names (+ moved a method) 2015-06-01 18:23:34 +03:00
Alexey Sedunov 26c4efb587 Light Elements: Filter out nulls when converting Kotlin declarations to corresponding light elements
#EA-64403 Fixed
2015-05-30 18:16:25 +03:00
Valentin Kipyatkov eef0e8e447 JetBlockExpression.getStatements() returns List<JetExpression> instead of List<JetElement> 2015-05-29 14:22:56 +03:00
Valentin Kipyatkov 4927a58101 Reordered methods 2015-05-29 14:07:34 +03:00
Valentin Kipyatkov 609ac21be0 Added TODO 2015-05-29 13:55:48 +03:00
Valentin Kipyatkov df0fc51d68 Moved methods working with calls into appropriate place 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov ac7e6bdfe4 Moved method to psiUtils.kt 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov 85d9855013 Moved methods for package-directory relation into IDEA 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov cbc0a60006 Moving more PSI modification methods to psiModificationUtils.kt 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov 006c02b569 Getting rid of confusing methods on PsiElement's 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov e99b343be3 Moving methods modifying PSI to psiModificationUtils.kt 2015-05-29 13:55:47 +03:00
Valentin Kipyatkov c1e0469188 More simple implementation 2015-05-29 13:55:46 +03:00
Valentin Kipyatkov 494d96bbc7 Refactored PsiElement.parents() into 2 properties 2015-05-29 13:55:46 +03:00
Valentin Kipyatkov 55f70d7d48 Dropped unused methods 2015-05-29 13:55:46 +03:00
Valentin Kipyatkov 0e8a43f746 Moved language independent methods from jetPsiUtil.kt to psiUtils.kt + reordered and gropped them 2015-05-29 13:55:46 +03:00
Valentin Kipyatkov 65383cf68b Fixed incorrect method 2015-05-29 13:55:46 +03:00
Valentin Kipyatkov c8223fff9e getFirstChild().siblings -> allChildren 2015-05-29 13:55:46 +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
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
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 53e9234ea9 Add quickfix for replacing positioned arguments in Java annotation 2015-05-27 17:41:27 +03:00