Ilya Gorbunov
f57c207ed2
Introduce NotImplementedError instead of UnsupportedOperationException to throw from TODO function.
...
#KT-8153
2015-07-24 04:32:52 +03:00
Ilya Gorbunov
f2716a973c
TODO as a function. Add an overload with a string reason.
...
#KT-8153 Fixed
2015-07-24 04:30:10 +03:00
Ilya Gorbunov
bfb116c0b2
Provide TODO as a substitution for not yet implemented method body.
...
#KT-8153
2015-07-24 04:29:31 +03:00
Ilya Gorbunov
da3ec891d0
Provide unzip method for Iterables, Arrays and Sequences of pairs.
...
#KT-5793 Fixed
2015-07-24 04:28:57 +03:00
Ilya Gorbunov
f604eef2fe
Undeprecate find(predicate) and generate it for all collection-like types. Provide findLast(predicate).
...
Drop deprecated method findNot and extension properties first, last, head, tail
#KT-5185 Fixed
2015-07-24 04:28:46 +03:00
Ilya Gorbunov
1cc94f92e2
Also generate contains for meaningless combinations of types to prevent mistakenly using contains from an Iterable.
...
#KT-6361
2015-07-24 04:28:34 +03:00
Ilya Gorbunov
b7fbb60db4
Generate contains function for all combinations of primitive numeric ranges and arguments.
...
#KT-6361
2015-07-24 04:14:06 +03:00
Ilya Gorbunov
8892192e9c
Generate openRange tests for compiler.
...
#KT-4665
2015-07-24 04:13:53 +03:00
Ilya Gorbunov
71f3e3049a
Provide until function to construct integer ranges with an end being excluded from range.
...
#KT-4665 Fixed
2015-07-24 04:13:41 +03:00
Ilya Gorbunov
808170a84b
Generate range downTos with templates DSL
2015-07-24 04:13:29 +03:00
Mikhail Glukhikh
c3c02e49c9
Retention for 'kotlin.throws'
2015-07-22 18:58:21 +03:00
Mikhail Glukhikh
94a00540be
Targeting / retention for a set of standard annotations, some inapplicable annotation checks replaced with target check, some fixed tests
2015-07-21 15:36:53 +03:00
Ilya Gorbunov
1857725629
Unify documentation for scope functions.
2015-07-20 02:16:26 +03:00
Ilya Gorbunov
8a578a46f6
Introduce apply() scope function.
...
#KT-6903 Fixed
2015-07-20 02:06:38 +03:00
Ilya Gorbunov
3e231f2e44
Generalize run() scope function.
...
#KT-5235 Fixed
2015-07-20 02:05:22 +03:00
Ilya Gorbunov
2c396cf28e
Add clarification about the lazy nature of Sequence.plus and Sequence.minus operations.
2015-07-17 10:54:54 +03:00
Ilya Gorbunov
8ac613dd67
Fix docs for String.partition
...
#KT-8493 Fixed
2015-07-17 10:54:40 +03:00
Ilya Gorbunov
fbd0c16551
Merging arrays without creating iterators.
2015-07-17 10:54:28 +03:00
Ilya Gorbunov
690a536734
Tests for minus operation for collections, sets, iterables and sequences.
2015-07-17 10:53:31 +03:00
Ilya Gorbunov
9d120dcd44
Provide minus and minusAssign for iterables, collections, sets, sequences.
...
removeAll and retainAll special case optimizations.
#KT-3721 Fixed
#KT-7466 Fixed
2015-07-17 10:53:18 +03:00
Ilya Gorbunov
048a3ebcc1
Implement plus for sequence as operand and refactor plus tests.
2015-07-17 10:53:05 +03:00
Ilya Gorbunov
0ee960da50
Change removeAll extension implementation to match the contract of member removeAll.
...
Add retainAll for sequences.
2015-07-17 10:52:51 +03:00
Ilya Gorbunov
2c28c5a8e8
Define plusAssign operator for mutable collections.
...
#KT-4020 Fixed
2015-07-17 10:52:25 +03:00
Ilya Gorbunov
dd945f4d1a
Tests for plus on collections, sets, sequences.
2015-07-17 10:52:12 +03:00
Ilya Gorbunov
0f340c8f62
Make primitive array tests run both in JVM and JS
2015-07-17 10:52:00 +03:00
Ilya Gorbunov
6507cf391b
Tests for array's copyOf and plus.
2015-07-17 10:51:49 +03:00
Ilya Gorbunov
a7bf415ad5
plus: do not generate ambiguos overloads.
2015-07-17 10:51:35 +03:00
Ilya Gorbunov
d89af24d6c
Variance of arrays sorted out.
...
Use concat for array + 1 in JS.
2015-07-17 10:51:22 +03:00
Ilya Gorbunov
7866184eb6
Array.plus — different implementations for JVM and JS.
...
Array.copyOf, copyOfRange available in JS.
2015-07-17 10:51:09 +03:00
Ilya Gorbunov
c883df544c
Make plus operation to be strict binary or right external binary for Sets and Arrays.
2015-07-17 10:50:58 +03:00
Ilya Gorbunov
8b325e8a30
Make ByteArray.inputStream a method, not a property.
...
#KT-8360 Fixed
2015-07-15 17:48:56 +03:00
Ilya Gorbunov
4de5dd9aeb
Drop deprecated FunctionalList, FunctionalQueue.
...
Remove dependency on FunctionalList from tests.
2015-07-15 17:45:56 +03:00
Ilya Gorbunov
0a320a13e5
Stdlib generators: change constants for Long: ZERO, ONE, -ONE.
2015-07-15 17:21:52 +03:00
Ilya Gorbunov
d1a12aa2a7
plus, plusAssign, minus, minusAssign for all possible parameter types for Maps.
...
#KT-6594 Fixed
2015-07-15 17:12:45 +03:00
Ilya Gorbunov
e080753dc2
Provide toMap and putAll for Arrays and Sequences of key-value pairs.
...
#KT-4166 Fixed
2015-07-15 17:12:43 +03:00
Ilya Gorbunov
96b79eebe7
asSequence returns empty sequence singleton for empty arrays and strings.
...
#KT-8450 Fixed
2015-07-15 17:08:27 +03:00
Mikhail Glukhikh
609d696202
Annotations have now retention of "RUNTIME" by default. Java retention is generated as given by kotlin annotation. Annotation rendering changed.
...
Annotation arguments with default values are rendered as ... if renderDefaultAnnotationArguments is true.
Tests: java retention does not taken into account by Descriptor comparator.
Java retentinon changed to kotlin retention in some tests + one new test with java retention added.
More accurate tests for intentions in byte code (visibility controlled).
2015-07-14 16:25:01 +03:00
Denis Zharkov
0a19fb7df2
Make project compilable after types enhancement
2015-07-09 16:36:46 +03:00
Denis Zharkov
4479c215d4
Change return type for iterator method of asList impls for *Array
...
These objects implement AbstractList that extending MutableCollection.
After type propagation `iterator` of AbstractList become MutableIterator, so it cannot be overriden with immutable Iterator
2015-07-09 16:36:46 +03:00
Ilya Gorbunov
30ec88129c
Clarify docs for capitalize and decapitalize methods.
2015-07-07 22:36:55 +03:00
Yan Zhulanow
bffb24b075
Add publicField annotation
2015-07-07 16:35:22 +03:00
Ilya Gorbunov
f440d97e04
Remove unnecessary Char.toChar from tests.
2015-07-06 17:57:35 +03:00
Ilya Gorbunov
005a0a1eb6
Eliminate deprecated char operation usages in stdlib
2015-07-04 04:45:47 +03:00
Ilya Gorbunov
f7436064d0
Unify componentN templates and add NOTHING_TO_INLINE suppression.
2015-07-03 16:38:10 +03:00
Ilya Gorbunov
9618a3542f
Provide getOrElse and getOrNull methods for indexed collections.
...
Breaking: elementAtOrElse is no longer inlined for Iterables and Sequences.
#KT-6952
2015-07-03 16:38:08 +03:00
Ilya Gorbunov
64379947fd
Do not allow using getOrPut on concurrent maps.
...
#KT-5800 In Progress
2015-07-01 22:33:58 +03:00
Ilya Gorbunov
a47325cc30
Provide getOrSet method for ThreadLocal<T: Any>
...
#KT-7927 Fixed
2015-07-01 22:30:17 +03:00
Ilya Gorbunov
cb9d9cb77d
Delegates.observable and vetoable inline their lambda parameters into ObservableProperty implementation.
...
ObservableProperty made abstract.
#KT-5388
2015-07-01 22:23:14 +03:00
Ilya Gorbunov
9dbc4e4eef
Provide another type of callback to the ObservableProperty which is called after the property value has been changed.
...
#KT-6866 Fixed
2015-07-01 22:23:11 +03:00
Ilya Gorbunov
6b700c4ba6
Restore and undeprecate removed Iterator.forEach().
2015-06-29 17:06:48 +03:00