Ilya Gorbunov
dccae6c3ff
Introduce annotation InlineExposed to indicate internal members effectively public due to usage in inlined functions.
...
Currently, doesn't affect anything.
Make collectionSizeOrDefault and collectionSizeOrNull internal, but expose them via inlining together with mapCapacity.
Make Regex(Pattern) constructor exposed by inlined Pattern.toRegex
2016-02-01 22:20:27 +03:00
Ilya Gorbunov
c7bd70732c
Inline-only in generated code
2016-02-01 22:09:07 +03:00
Ilya Gorbunov
8c0008aa2e
StdLib Generators: support three flavors of inline
2016-02-01 22:09:07 +03:00
Yan Zhulanow
a041414f35
Kapt: compile kotlinAfterJava without Jdk as well in Android projects (KT-10854)
2016-02-01 14:33:02 +03:00
Gabriel Borges
d58efff974
Add foldIndexed and reduceIndexed groups of functions
...
- foldIndexed, foldRightIndexed, reduceIndexed and reduceRightIndexed have been added, in line with filterIndexed etc.;
- Test cases added appropriately for the new functions.
2016-01-31 02:45:02 +03:00
Alexander Udalov
7e17482698
Delete kotlin-jdk-annotations and kotlin-android-sdk-annotations
...
They were empty anyway for a long time
2016-01-28 21:48:16 +03:00
Yan Zhulanow
c6e6547559
Kapt: add Java task classpath to processorpath
2016-01-27 19:31:45 +03:00
Yan Zhulanow
203d9e150b
Kapt: Add kapt.kotlin.generated to the supported options list
2016-01-27 19:31:45 +03:00
Ilya Gorbunov
d46501e11b
Make all remaining deprecations to be errors.
2016-01-27 18:34:32 +03:00
Ilya Gorbunov
263e1b4b5d
Drop deprecated mapIndexedTo on Maps.
2016-01-27 18:34:31 +03:00
Yan Zhulanow
c7a0375c25
Fix AndroidSubplugin applicability check (plain Java Gradle project)
2016-01-27 17:17:47 +03:00
Yan Zhulanow
4e82fabc7d
kapt: Pass Kotlin annotations to process()
2016-01-27 17:17:47 +03:00
Ilya Gorbunov
8d02467e6d
Introduce plusElement and minusElement to disambiguate situations like List<List<T>> + List<T>
...
#KT-9992 Fixed
2016-01-27 00:00:01 +03:00
Yan Zhulanow
26ed1c3756
Move Android Extensions subplugin to the main kotlin-gradle-plugin artifact
2016-01-26 21:13:37 +03:00
Ilya Gorbunov
90a239e74c
Provide toMutableList as a replacement for toArrayList.
2016-01-26 11:49:15 +03:00
Ilya Gorbunov
564155734b
Introduce associateTo and associateByTo with the destination MutableMap to fill.
2016-01-26 11:49:12 +03:00
Ilya Gorbunov
8224a4e186
Rename toMap and toMapBy to associate and associateBy
2016-01-26 11:49:03 +03:00
Ilya Gorbunov
7703252239
Provide groupBy and groupByTo with keySelector and valueTransform.
...
Rename parameters of groupBy, add type parameter for MutableMap to groupByTo.
2016-01-25 21:15:56 +03:00
Ilya Gorbunov
0eaaee8202
StdLib Generators: parse generic function parameters into primitive model
2016-01-25 21:15:19 +03:00
Ilya Gorbunov
a78b08d9c7
Use generic coerceIn for nullable primitives, provide specialization for non-nullable ones.
...
Fix docs for coerceAtMost.
2016-01-24 06:44:13 +03:00
Ilya Gorbunov
13b1e91eb5
StdLib Generators: fix type projections, do not use concat.
2016-01-23 05:13:26 +03:00
Denis Zharkov
6c0cd70a22
Introduce PureReifiable annotation
...
It prevents reporting unsafe substitution warning on expressions
like 'arrayOf(arrayOf(""))'
2016-01-22 19:17:22 +03:00
Ilya Gorbunov
b39b29dfea
Drop deprecations: io and threading functions.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
25c4453dc5
Cleanup deprecated symbol usages in testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
ef0d998fbc
Drop deprecations: *Raw functions.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
85a02d40c6
Drop hidden declarations provided for binary compatibility
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
264c9a0fc9
Drop deprecated toGenerator and toLinkedList (again).
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
91f4cf0ebc
Drop Progression<T> and its deprecated properties: start, end, increment.
...
Drop deprecated range extensions.
Make progression constructors private.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
6dd8470835
Drop deprecated primitive ranges and progressions: for Byte and Short
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
e8621cb738
Drop Range<T> interface and its extensions.
2016-01-22 05:54:38 +03:00
Dmitry Jemerov
ccef1ad49e
report presence of multiple different versions of kotlin-runtime on the classpath as compilation error if other compilation errors have occurred
2016-01-20 21:02:44 +01:00
Dmitry Jemerov
52acd34a61
fix Maven build
2016-01-19 10:54:04 +01:00
Ilya Gorbunov
67ef790abc
Move comparison related functions to kotlin.comparisons, update imports in stdlib.
2016-01-18 21:46:31 +03:00
Ilya Gorbunov
57dcbe0aea
Cleanup in libraries and tools: use property access syntax.
2016-01-17 15:52:14 +03:00
Ilya Gorbunov
19a4f65fd1
Cleanup in libraries
2016-01-17 15:52:12 +03:00
Ilya Gorbunov
3d5e415c87
Annotate Iterable.forEach and Map.forEach with HidesMembers.
...
#KT-10538 Fixed
#KT-10479 Fixed
2016-01-16 15:33:12 +03:00
NataliaUkhorskaya
d4fcb59965
Gradle plugin: fix compatibility with android-gradle plugin 2.0.0-alpha5
...
#KT-10676 Fixed
2016-01-15 15:56:47 +03:00
Ilya Gorbunov
68971e2162
Remove redundant JvmName annotations for Array.copyOf, copyOfRange
2016-01-14 18:30:41 +03:00
Ilya Gorbunov
b99e1111f6
Do not use out projection for Array where appropriate.
2016-01-14 18:30:40 +03:00
Ilya Gorbunov
eb5b5331fb
Minor: reorder invariant arrays of objects in generated code
2016-01-14 18:30:39 +03:00
Ilya Gorbunov
362e463b26
Preserve type projection for Array.requireNoNulls.
...
#KT-10039 Fixed
2016-01-14 18:30:37 +03:00
Dmitry Petrov
c97294a066
stdlib fixes:
...
- 'sequence(initialValue: T?, ...)' should have LowPriorityInOverloadResolution
(otherwise 'sequence({...}, {...})' is ambiguous).
- 'copyOf' and 'copyOfRange' should be defined for 'Array<T>' only
('Array<out T>' version always loses to 'Array<T>', since the second one
is always more specific).
2015-12-30 10:44:00 +03:00
Ilya Gorbunov
b71b336a69
Fix fq names of moved facade classes in imports and other code occurrences
2015-12-29 18:04:13 +03:00
Yan Zhulanow
b3877b5f0b
Always compile Android projects without JDK in classpath #KT-10479
2015-12-23 16:42:35 +03:00
Sergey Mashkov
5ad0a84039
rename kotlin.test to kotlin-test
2015-12-21 15:10:24 +03:00
Stanislav Erokhin
bcaa755c4e
Fix compilation.
...
- rename isFinal extension property to avoid ambiguity with synthetic property in DeserializedClassTypeConstructor
- add explicit parameter to lambda File.listFiles
- return true from lambda Query.forEach
2015-12-18 22:49:26 +03:00
Sergey Mashkov
fe4f51617c
Add kotlin.test dependency to kotlin-compiler-embeddable
2015-12-18 22:17:47 +03:00
Sergey Mashkov
a5b098c4a7
kotlin.test: Rename jvm module to junit
2015-12-18 22:16:04 +03:00
Sergey Mashkov
1867abbbe7
Add kotlin.test library
2015-12-18 22:16:04 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00