Ilya Gorbunov
33b366b9b9
Relax upper bound of T for minBy and maxBy to be nullable.
...
Swap type parameters of minBy and maxBy.
#KT-10099 Fixed
2015-12-14 04:56:45 +03:00
Ilya Gorbunov
feff5b2327
Stdlib generators: change values back to function.
2015-12-14 03:49:59 +03:00
Ilya Gorbunov
871c5c66b4
Move code between packages (JS)
2015-12-14 03:49:46 +03:00
Ilya Gorbunov
81e7826568
Move generated code between packages.
2015-12-14 03:49:43 +03:00
Dmitry Petrov
0fe74a8b43
COMMA_IN_WHEN_CONDITION_WITHOUT_ARGUMENT is an ERROR now.
...
Migrated code.
Updated test data in IDE tests.
Dropped whenWithRangeTestsAndMultiConditions.kt:
"Introduce subject" is not applicable to 'when' with ||-ed conditions.
2015-12-11 10:43:16 +03:00
Yan Zhulanow
ac9a1350c2
Application package from manifest file has a higher priority than the applicationId value in build.gradle (KT-10320)
2015-12-10 19:38:38 +03:00
Natalia Ukhorskaya
51abb021bc
Correct resource path for flavors in android-extensions-plugin
2015-12-04 17:21:37 +03:00
Natalia Ukhorskaya
a197fc8cb8
Fix NoSuchMethod in android-extensions-plugin
...
#KT-10263 Fixed
2015-12-03 16:17:24 +03:00
Ilya Gorbunov
0ffce06356
Hide toMap with keySelector
...
#KT-6657
2015-12-01 01:18:46 +03:00
Ilya Gorbunov
ea60ab74a7
Replace deprecated toMap usages with toMapBy
2015-12-01 01:18:44 +03:00
Ilya Gorbunov
f107559a3c
Docs: proper pluralization of 'entry'
2015-12-01 01:18:21 +03:00
Ilya Gorbunov
6ca647aecd
Minor: cleanup asSequence() documentation.
2015-12-01 01:18:19 +03:00
Ilya Gorbunov
f596d9ac23
Provide asIterable also for CharSequences, Maps and Iterables.
...
KT-10152 Fixed
2015-12-01 01:18:18 +03:00
Ilya Gorbunov
f7a780f32c
Extension contains for ranges: rename parameter item to value.
2015-11-30 14:12:11 +03:00
Ilya Gorbunov
661e288362
Introduce 'step' property in progressions instead of 'increment'
2015-11-30 14:12:05 +03:00
Ilya Gorbunov
941167e241
Revert "Drop deprecated toGenerator and toLinkedList." until RC
2015-11-29 04:37:45 +03:00
Ilya Gorbunov
f8fe3e6c1d
Restore dropped hidden declarations for binary compatibility until RC.
2015-11-29 04:37:35 +03:00
Ilya Gorbunov
54b415593a
Replacement upcasts parameter to the most specific supertype in case of contains, indexOf, lastIndexOf, remove, get, containsKey, containsValue.
2015-11-28 07:21:38 +03:00
Ilya Gorbunov
de86e90103
Generate indexOf and lastIndexOf extensions for List.
2015-11-28 07:20:27 +03:00
Ilya Gorbunov
a25f23a286
Apply @OnlyInputTypes on type parameter for contains, indexOf, lastIndexOf extensions for Iterables, Sequences and Arrays instead of @NoInfer on element parameter.
...
Provide covariant extensions annotated with @OnlyInputTypes:
- Collection<T>: containsAll(Collection<T>),
- MutableCollection<out T>: remove(T), removeAll, retainAll (Collection<T>),
- List<T>: indexOf(T), lastIndexOf(T)
- Map<out K, V>: get(K), containsKey(K), contains(K)
- Map<K, V>: containsValue(V)
- MutableMap<out K, V>: remove(K)
All *Raw extensions are deprecated.
2015-11-28 07:20:24 +03:00
Yan Zhulanow
d21985493e
Mark functions with 'operator' in JS stdlib
2015-11-27 15:51:11 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Ilya Gorbunov
ca4bdd23e0
Provide flatten for sequence of iterables.
...
#KT-9977
2015-11-26 00:45:15 +03:00
Ilya Gorbunov
77f69abca4
Drop deprecated toGenerator and toLinkedList.
2015-11-25 18:35:02 +03:00
Ilya Gorbunov
c485eda1c2
Make zip operation symmetrical for CharSequences (missed to generalize parameter before).
2015-11-25 18:35:01 +03:00
Ilya Gorbunov
a05d0a3c49
Drop hidden declarations provided for binary compatibility in beta2
2015-11-25 18:35:00 +03:00
Michael Nedzelsky
ac8dd1262c
generate kjsm-files for js-stdlib and during compilation via maven or gradle
2015-11-23 22:32:37 +03:00
Ilya Gorbunov
0dbbb6c19c
Rename operand parameter of plus and minus for collections
2015-11-21 00:54:37 +03:00
Ilya Gorbunov
2ed277a863
Add upperbound constraint Comparable<T> to toSortedSet() and sortedMapOf()
...
Provide an overload of toSortedSet() with Comparator<in T> parameter
#KT-10115 Fixed
2015-11-21 00:54:33 +03:00
Ilya Gorbunov
f8f257fa44
Minor: fix infix extension after parameter renamed
2015-11-21 00:54:32 +03:00
Ilya Gorbunov
bf3a77b736
Deprecate Regex.matcher() with ERROR and provide the replacement.
2015-11-21 00:54:28 +03:00
Ilya Gorbunov
0f70def3db
StdLib: Rename method parameters (generated code)
2015-11-21 00:54:20 +03:00
Ilya Gorbunov
16c5289e6c
Stdlib generators DSL: allow to use documentation family extensions inside doc { } without importing them first.
2015-11-21 00:54:13 +03:00
Ilya Gorbunov
a426c7879f
Apply infix modifier on functions from stdlib where appropriate.
2015-11-21 00:54:12 +03:00
Ilya Gorbunov
dadcdb5771
StdLib cleanup, deprecated symbol usage: List and Map members
2015-11-21 00:54:08 +03:00
Ilya Gorbunov
838109c302
StdLib cleanup, deprecated symbol usage: replace end with endInclusive
2015-11-21 00:54:06 +03:00
Ilya Gorbunov
07654eb82b
StdLib cleanup, deprecated symbol usage: size() and length()
2015-11-21 00:54:05 +03:00
Yan Zhulanow
161d8b105f
Support variants in Android Extensions (compiler plugin)
2015-11-19 01:35:58 +03:00
Michael Nedzelsky
dc7171e953
improve check for access to internal from tests for projects compiled via gradle
2015-11-18 22:57:59 +03:00
Michael Nedzelsky
e92ac6cba3
fix access to internal from tests for android projects which compiled via gradle
2015-11-18 20:19:31 +03:00
Ilya Gorbunov
3639afafce
Deprecated with ERROR preconditions with eager message.
2015-11-11 19:00:03 +03:00
Ilya Gorbunov
f7135dfe50
Do not override default AbstractList iterator() implementation for primitiveArray.asList wrappers.
...
#KT-9927 Fixed
2015-11-11 16:41:39 +03:00
Ilya Gorbunov
0786027271
Deprecate Range<T> in generated code.
...
Provide hidden overloads of downTo and until with byte and short parameters for binary compatibility.
2015-11-11 03:53:52 +03:00
Ilya Gorbunov
6bac3e1986
Drop Ranges, Progressions, ProgressionIterators for Double and Float.
...
Undeprecate generic Comparable.rangeTo, but return private implementation instead.
Undeprecate contains and coerceIn for generic ranges.
2015-11-11 03:53:47 +03:00
Ilya Gorbunov
5ebb3d20e8
Change internal implementation of progression: use first, last instead of start, end
...
Keep the end value as it was passed to progression constructor.
Deprecate primary progression constructor and introduce factory method in companion object.
2015-11-11 03:53:40 +03:00
Ilya Gorbunov
854d376988
Eliminate byte and short ranges and progressions from range construction functions' return type.
2015-11-11 03:53:29 +03:00
Ilya Gorbunov
8bdd1e3246
Sorting optimizations: do not make excessive copies, introduce methods to sort the whole array.
...
#KT-9904 Fixed
2015-11-11 03:29:40 +03:00
Ilya Gorbunov
3e81cdfc5d
Deprecate mapIndexedTo for Maps.
2015-11-11 03:12:19 +03:00
Ilya Gorbunov
9323f61eaf
Introduce T.addTo(MutableCollection<T>), mapNotNull and mapIndexedNotNull extensions.
...
#KT-4410 Fixed
2015-11-11 03:12:17 +03:00
Ilya Gorbunov
008a8059cf
Introduce filterIndexed
...
#KT-9502 Fixed
2015-11-11 02:42:52 +03:00