Commit Graph

23465 Commits

Author SHA1 Message Date
Ilya Gorbunov 59ff9dc3cf Document lazy interface and methods. 2015-06-19 23:08:11 +03:00
Ilya Gorbunov 536e669023 Provide Lazy<T> in kotlin package — an interface that represents lazily computed value. Read-only properties can be delegated to lazy with the extension getter. Delegates.lazy and blockingLazy are deprecated. 2015-06-19 23:08:09 +03:00
Ilya Gorbunov f2788d53c0 Refactor: rename PropertyMetadata parameter from 'desc' to 'property'.
Correct test data after parameter has been renamed.
2015-06-19 23:08:08 +03:00
Ilya Gorbunov 6b747cf6f8 Move delegate property interfaces to a separate file. 2015-06-19 23:00:03 +03:00
Ilya Gorbunov fb6c7e20de Use identity equals in lazy unescape.
#KT-7474 Fixed
2015-06-19 23:00:01 +03:00
Alexey Sedunov 3266d8c29a Parser: Disable joining complex tokens while parsing type references
#KT-8141 Fixed
2015-06-19 21:45:13 +03:00
Alexey Sedunov 0e9bcee0bc Move: Specify file name in command description 2015-06-19 21:45:12 +03:00
Alexey Sedunov 6376420970 Move: UI Fixed 2015-06-19 21:45:11 +03:00
Alexey Sedunov 96a50f46c2 Move: Fix dialog mnemonics 2015-06-19 21:45:10 +03:00
Alexey Sedunov dd3ba8675d Move: Fix handler selection when moving Java class with Kotlin file/class 2015-06-19 21:45:09 +03:00
Alexey Sedunov cd550ed5ba Move: Suggest empty package when moving to source root 2015-06-19 21:45:08 +03:00
Alexey Sedunov aef2443528 Move: Add "Update package directive" option to dialog
#KT-6084 Fixed
2015-06-19 21:45:07 +03:00
Alexey Sedunov 111a4a5cbc Move: Disable "File name" field when switching to "Move to file" mode 2015-06-19 21:45:06 +03:00
Alexey Sedunov 77f2c5d5b9 Move: Fix file rename on undo/redo 2015-06-19 21:45:05 +03:00
Ilya Gorbunov a80f65cfd9 Do not create empty list when reversing empty collection or array — use singleton empty list instead.
#KT-8099 Fixed
2015-06-19 19:41:10 +03:00
Michael Nedzelsky 8a3182d1e7 Update source roots for idea libraries 2015-06-19 15:51:53 +03:00
Nikolay Krasko d1e7e184b6 Do psi-only checks to avoid unnessasary resolve in creating recursion markers 2015-06-19 14:15:17 +03:00
Mikhail Glukhikh 065db07e1c More accurate check on an enum entry deprecated super constructor #EA-69735 Fixed 2015-06-19 13:50:49 +03:00
Yan Zhulanow d0897193e8 kapt: Use actual classpath in the second Kotlin task as well 2015-06-19 02:29:13 +03:00
Yan Zhulanow 5f85a028ae kapt: Fix ConcurrentModificationException in Gradle 2015-06-19 02:29:13 +03:00
Yan Zhulanow d9ac8c9d22 kapt: Pass annotation declarations options via Java APT options 2015-06-19 02:29:12 +03:00
Yan Zhulanow 205585c63e kapt: Support lazy evaluation of additional kapt arguments in test 2015-06-19 02:26:21 +03:00
Yan Zhulanow 8a10de3a26 Add Gradle test for additional kapt arguments 2015-06-19 02:26:20 +03:00
Yan Zhulanow 7f2bd5b9d4 Add basic kapt tests 2015-06-19 02:26:19 +03:00
Yan Zhulanow fee1726dfb Write annotations with RetensionPolicy(SOURCE) to light classes 2015-06-19 02:25:41 +03:00
Yan Zhulanow 17e6b8f014 kapt: Lazy evaluation of additional arguments 2015-06-19 02:25:40 +03:00
Yan Zhulanow f158b5b0c4 Support additional compiler arguments 2015-06-19 02:25:40 +03:00
Yan Zhulanow 3ea4306eb9 kapt: Generate stub source file just after Kotlin compile 2015-06-19 02:25:40 +03:00
Yan Zhulanow 37d52501c8 Add simple annotation processor for tests 2015-06-19 02:25:39 +03:00
Michael Nedzelsky eda7f49b61 fix KT-7879 KotlinJS - Cannot browse jslib sources
#KT-7879 Fixed
2015-06-18 19:47:56 +03:00
Alexey Sedunov 17ca0d2c2c Minor: Extract Preview class 2015-06-18 19:28:08 +03:00
Alexey Sedunov 7ac02d751a Minor: Use MultiMap 2015-06-18 19:28:07 +03:00
Alexey Sedunov 378c1744cb Introduce Parameter: Suggest removing extension receiver which becomes unused after new parameter is added 2015-06-18 19:28:06 +03:00
Alexey Sedunov 5409b19abc Change Signature: Do not replace implicit receivers in calls with at least one explicit receiver
#KT-7988 Fixed
2015-06-18 19:28:05 +03:00
Alexey Sedunov d58112a32a Extract Function: Use intersection type to compute candidate types for parameters
#KT-8103 Fixed
2015-06-18 19:28:04 +03:00
Alexey Sedunov 1a9003c325 Copy: Fix Kotlin file copying. Drop useless JetCopyClassHandler
#KT-7515 Fixed
2015-06-18 19:28:03 +03:00
Alexey Sedunov 683a8895df Introduce Variable: Do not insert unused variable references
#KT-7227 Fixed
2015-06-18 19:28:02 +03:00
Alexey Sedunov 1506531e59 Rename: Fix class rename by constructor reference 2015-06-18 19:28:01 +03:00
dnpetrov 36ae8790a1 KT-8011 Compiler crashes on attempt to create local class inside lambda
- use StackValue from upper-level context if local lookup fails

 #KT-8011 Fixed
2015-06-18 17:40:24 +03:00
Michael Nedzelsky dba29fff0d fix KT-7932 plugin generates absolute path to kotlin-jslib.jar for JS module (in .iml files)
#KT-7932 Fixed
2015-06-18 16:54:35 +03:00
Michael Nedzelsky 3b43f68c1e minor: refactoring KotlinJavaScriptLibraryManager 2015-06-18 16:54:32 +03:00
Nikolay Krasko 818bfce1f1 Minor: add method for printing thread name 2015-06-18 16:45:23 +03:00
Nikolay Krasko 6d7cc8bc02 Minor: Don't print end message if profiler was muted 2015-06-18 16:45:22 +03:00
Nikolay Krasko 0f032100fc Update source roots for idea libraries 2015-06-18 16:45:21 +03:00
Ilya Gorbunov 4093147c69 Regenerate docs for intersect and subtract. (PR#703) 2015-06-18 15:13:48 +03:00
Alex Roussos 00c2b684fd Fix documentation for Sets intersect() and subtract()
Adds correct documentation for the Sets intersect() and subtract() methods, which had been copied from union().
2015-06-18 15:10:44 +03:00
dnpetrov 046189087a KT-5963 Call to super shouldn't require type specification if there is no conflict
Implemented unqualified 'super' type resolution (in BasicExpressionTypingVisitor).

No overload resolution of any kind is involved.
Corresponding supertype is determined by the expected member name only:
- 'super.foo(...)' - function or property (of possibly callable type) 'foo'
- 'super.x' - property 'x'
Supertype should provide a non-abstract implementation of such member.
As a fall-back solution for diagnostics purposes, consider supertypes with abstract implementation of such member.

Diagnostics:
- AMBIGUOUS_SUPER on 'super', if multiple possible supertypes are available;
- ABSTRACT_SUPER_CALL on selector expression, if the only available implementation is abstract.

#KT-5963 Fixed
2015-06-18 14:16:34 +03:00
Ilya Gorbunov 46baffc233 Temporary Add jvmOverloads to String.indexOf 2015-06-17 23:15:33 +03:00
Sergey Mashkov bff88b9fe1 Fix gradle test 2015-06-17 20:41:00 +03:00
Dmitry Jemerov e852b2d748 fix tests, sorry 2015-06-17 18:18:24 +02:00