Commit Graph

31423 Commits

Author SHA1 Message Date
Alexander Udalov d85884426e Minor optimization of lookup tracker records 2016-04-29 15:21:26 +03:00
Alexander Udalov 785877d1de Combine Java package scope and Kotlin scopes in JvmPackageScope
Use it in LazyJavaPackageFragment#scope instead of a weird lazy chained scope.
Also move lookup tracker records to it, to prevent them from being written in
each package scope individually (this was hurting performance)
2016-04-29 15:21:26 +03:00
Alexander Udalov 05af72dc7a Optimize class lookups in DeserializedPackageMemberScope
Do not try to load classes (and litter in ClassDeserializer#classes cache with
unsuccessful requests) which the deserialized scope knows nothing about. This
is possible because deserialized scopes have the full list of their class names
2016-04-29 15:21:26 +03:00
Denis Zharkov d259b91143 Add MutableMap.remove(K, V) as built-in declaration
Use PlatformDependent annotation to guarantee it's only be available for JDK8
Also adjust type-safe bridges and mutable collection stubs generation
2016-04-29 15:08:54 +03:00
Denis Zharkov 55c4f875c8 Use signatures instead of fq-names in special built-ins
It's necessary to distinguish overloads,
e.g. MutableMap.remove now has two versions
2016-04-29 15:08:54 +03:00
Kirill Rakhman 8e5481b5d5 Implement Intention to add @JvmOverloads (#860)
Implement Intention to add @JvmOverloads
Fixes #KT-11523
2016-04-29 14:32:00 +03:00
Kirill Rakhman f309920af8 Add quickfix to make referenced primary constructor parameter a property
Fixes #KT-12089
2016-04-29 12:14:42 +02:00
Kirill Rakhman 1c5322bae4 Quick fix for SUPERTYPE_IS_EXTENSION_FUNCTION_TYPE (#858)
* Quick fix for SUPERTYPE_IS_EXTENSION_FUNCTION_TYPE
Fixes #KT-11876

* Revert accidental change

* Remove period

* ConvertExtensionToFunctionTypeFix: more tests
2016-04-29 12:47:38 +03:00
Valentin Kipyatkov b551886889 Code cleanup: removed redundant semicolons 2016-04-29 11:26:25 +03:00
Valentin Kipyatkov e1d8c72aa7 KT-10770 IDEA cannot keep import if a type is only referenced by kdoc.
#KT-10770 Fixed
2016-04-29 11:23:23 +03:00
Valentin Kipyatkov cd2161b37d KT-12069 Specify language for all Kotlin code inspections
#KT-12069 Fixed
2016-04-29 11:23:23 +03:00
Valentin Kipyatkov 306edef23c Highlighting of redundant semicolons
#KT-5010 Fixed
2016-04-29 11:23:22 +03:00
Valentin Kipyatkov 77033f52ee ConvertPropertyInitializerToGetterIntention to not be available inside lambda initializer 2016-04-29 11:23:22 +03:00
Kirill Rakhman 4a619db721 Add intrinsic for KCallable.name property Fixes #KT-11531 2016-04-28 23:03:00 +03:00
Nikolay Krasko b8e2533b58 Check that injection with annotation on parameter doesn't trigger not-stubbed psi 2016-04-28 16:11:35 +03:00
Nikolay Krasko dd8b667360 Don't analyze function body if only parameter analyze is requested 2016-04-28 16:11:33 +03:00
Nikolay Krasko faa2745731 Missing new line in error message (KT-12070)
#KT-12070 Fixed
2016-04-28 16:11:27 +03:00
Nikolay Krasko 018622e552 Use partial resolve for annotation search 2016-04-28 16:06:35 +03:00
Nikolay Krasko 3d8abd874b Use kotlin specific methods for pattern creation 2016-04-28 16:06:34 +03:00
Nikolay Krasko 73024429dc Refactoring: use language injection in ResolveElementCache.kt 2016-04-28 16:06:32 +03:00
Nikolay Krasko 62ede15241 Refactoring: return injection tests to single test-class 2016-04-28 16:06:30 +03:00
Michael Bogdanov adda3ef69d Ability to run tests via adb 2016-04-28 15:02:33 +03:00
Michael Bogdanov d4a7e36722 Android tests exclusion 2016-04-28 15:02:33 +03:00
Michael Bogdanov 896429a959 Switch to gradle from gradle wrapper, use https instead of http to download files 2016-04-28 15:02:32 +03:00
Michael Bogdanov 309348c9be Code clean 2016-04-28 15:02:32 +03:00
Michael Bogdanov 7d77f9171c Wait some time before emulator stop, diabled emulator log redirection (otherise result reports would be inconsistent)
~emulator
2016-04-28 15:02:31 +03:00
Michael Bogdanov be1cb406d2 More logging on adb server start 2016-04-28 15:02:31 +03:00
Michael Bogdanov db6c72d886 Support WITH_REFLECT and 'Class.forName' android tests 2016-04-28 15:02:30 +03:00
Michael Bogdanov ed3d874f88 Wait until emulator booted 2016-04-28 15:02:30 +03:00
Michael Bogdanov 2992e23508 Use gradle build instead of ant one for android test module 2016-04-28 15:02:29 +03:00
Michael Bogdanov 3ad8b5be91 Ecluded test from compilation: android report bad class file cause of missed generic parameter definition 2016-04-28 15:02:29 +03:00
Michael Bogdanov 0abdc75477 Temporary disable lint checks cause of problem with implicit 'stream' import 2016-04-28 15:02:28 +03:00
Michael Bogdanov 3cebb7c804 Added support for tests with 'JvmName' annotation 2016-04-28 15:02:28 +03:00
Michael Bogdanov 11e42c6472 Call 'invokeBox' with proper class instance (not try to find it via reflection) 2016-04-28 15:02:27 +03:00
Michael Bogdanov 1eb3d2ec1d Added gradle android test project 2016-04-28 15:02:27 +03:00
Michael Bogdanov 1f84ff7fa6 Writing android sdk to local.properties 2016-04-28 15:02:26 +03:00
Kirill Rakhman 2629d23576 Add quickfix to add 'toString' (#866)
Fixes #KT-12121
2016-04-28 12:15:39 +03:00
Valentin Kipyatkov a51fe9a9b0 Minor change on code review 2016-04-27 23:47:35 +03:00
Valentin Kipyatkov 45d460a5fa Dropped redundant code which was required for lambda signature completion when the syntax was different
#KT-12033 Fixed
2016-04-27 23:47:34 +03:00
Valentin Kipyatkov 40022e8f7a KT-12068 Special completion item for "[]" get-operator access
#KT-12068 Fixed
2016-04-27 23:47:34 +03:00
Valentin Kipyatkov deb75b3f18 Completion to complete non-imported classes on the first invocation
#KT-8527 Fixed
2016-04-27 23:47:33 +03:00
Valentin Kipyatkov f0dd70d94c KT-11680 Code completion of label for existing return with value inserts redundant whitespace
#KT-11680 Fixed
 #KT-9993 Fixed
2016-04-27 23:46:26 +03:00
Sergey Mashkov e9758099ce Maven: rebase to master 2016-04-27 19:40:58 +03:00
Sergey Mashkov d9dabeed76 Maven: review 2016-04-27 19:40:57 +03:00
Sergey Mashkov 072ec26452 Maven: convert to Kotlin 2016-04-27 19:40:57 +03:00
Sergey Mashkov 78d0f83f71 Maven: reorganize code: move classes across packages 2016-04-27 19:40:57 +03:00
Sergey Mashkov eb789304b6 Maven: inspection maven plugin and ide plugin should have the same version 2016-04-27 19:40:56 +03:00
Sergey Mashkov aa156c08c6 Maven: versions inspection: kotlin plugin and library should have the same version 2016-04-27 19:40:56 +03:00
Sergey Mashkov 6caef7716f Maven: kotlin-maven-plugin configuration source dirs completion 2016-04-27 19:40:55 +03:00
Sergey Mashkov d097c3e9f1 KT-11743 Intention to replace kotlin-test with kotlin-test-junit 2016-04-27 19:40:55 +03:00