Ilya Gorbunov
|
202cd81134
|
Unify Array.copyOf and copyOfRange function templates between JVM and JS.
|
2016-12-16 04:36:20 +03:00 |
|
Ilya Gorbunov
|
572a63f0e2
|
Unify Array.sort and sortWith function templates between JVM and JS.
Introduce new inline-only overload Array<out T: Comparable<T>>.sort().
|
2016-12-16 04:36:18 +03:00 |
|
Ilya Gorbunov
|
e890cb137f
|
Unify MutableList.reverse function template between JVM and JS
|
2016-12-16 04:36:16 +03:00 |
|
Ilya Gorbunov
|
085f476d22
|
Unify content[ToString, Equals, HashCode] function templates between JVM and JS
|
2016-12-16 04:36:14 +03:00 |
|
Ilya Gorbunov
|
f3df648f4a
|
Unify toTypedArray and asList templates between JVM and JS
|
2016-12-16 04:36:12 +03:00 |
|
Ilya Gorbunov
|
3d7e6e1996
|
Refactor stdlib generator: introduce platform-specialized properties.
Use Kotlin 1.1-M03 to utilize new language features.
|
2016-12-16 04:31:07 +03:00 |
|
Ilya Gorbunov
|
c097f326fb
|
Generate common headers of stdlib functions. What constitutes the header is yet to be decided.
|
2016-12-16 04:31:07 +03:00 |
|
Ilya Gorbunov
|
6ea1cde449
|
Generate additional sources for JS instead of copying them from JVM
|
2016-12-16 04:31:07 +03:00 |
|
Ilya Gorbunov
|
bc2d7dda2c
|
kotlin-stdlib-generator: Allow to generate top-level functions by specifying empty custom receiver. Allow to parametrize primitive specialization bodies with the type of primitive.
|
2016-12-16 04:31:07 +03:00 |
|
Alexey Andreev
|
212b9f37b3
|
JS: get rid of external extension functions and properties in stdlib
|
2016-12-09 15:13:08 +03:00 |
|
Mikhael Bogdanov
|
95a47e56f7
|
InlineExposed usages are changed to PublishedApi
|
2016-12-09 11:55:14 +01:00 |
|
Ilya Gorbunov
|
8ec2a2e6fe
|
Add NaN-propagation in coerceIn(ClosedComparableRange<Double>)
|
2016-12-08 22:13:00 +03:00 |
|
Ilya Gorbunov
|
ea77673dde
|
Reimplement coerceIn to range with new range functions: lessThanOrEquals.
|
2016-12-08 20:50:26 +03:00 |
|
Ilya Gorbunov
|
5773594412
|
Reimplement ClosedRange.contains extensions to call interface contains method.
|
2016-12-08 20:50:07 +03:00 |
|
Ilya Gorbunov
|
1aad82bbaf
|
Allow to specify generated function visibility, add capacity rank of primitive type
|
2016-12-08 20:47:22 +03:00 |
|
Alexey Andreev
|
68412ae94f
|
JS: replace all usages of @native annotation with external modifier, in tests, stdlib, etc
|
2016-12-08 15:41:39 +03:00 |
|
Ilya Gorbunov
|
75d80acac9
|
Rework existing unit tests used as samples.
|
2016-12-02 22:41:25 +03:00 |
|
Ilya Gorbunov
|
dc57d69085
|
Improve onEach templates.
Add new functions to reference API.
Add tests for onEach
#KT-8220
|
2016-11-30 16:46:56 +03:00 |
|
Christian
|
5bde230d4a
|
Add onEach template. #KT-8220
|
2016-11-30 16:46:26 +03:00 |
|
Ilya Gorbunov
|
65a7410eca
|
Allow receiver to be generic type constrained by SELF. Receiver itself now can be referenced with RECEIVER.
|
2016-11-30 16:46:26 +03:00 |
|
Ilya Gorbunov
|
87c9d4e84e
|
Introduce unsafeCast function. Provide more JS-idiomatic emptyArray() implementation.
#KT-14034 Fixed
|
2016-11-19 03:37:47 +03:00 |
|
Ilya Gorbunov
|
5c2fe13a89
|
Refer to java.util.Arrays fully-qualified in generated code
|
2016-11-16 18:47:42 +03:00 |
|
Ilya Gorbunov
|
fae5c88f22
|
Remove java.util references from the common code
|
2016-11-16 18:47:42 +03:00 |
|
Ilya Gorbunov
|
8feaaf4df0
|
Allow to annotate generated API with SinceKotlin and annotate new array functions.
|
2016-11-08 18:08:59 +03:00 |
|
Ilya Gorbunov
|
dceec89572
|
JS: Array.toString is const, Array.contentToString is shallow, Array.contentDeepToString is deep and self-reference aware
#KT-13582
|
2016-11-08 17:23:45 +03:00 |
|
Ilya Gorbunov
|
f3da656d6e
|
contentEquals, contentHashCode, contentToString: Add js implementation and tests
#KT-13582
|
2016-11-08 17:23:45 +03:00 |
|
Ilya Gorbunov
|
a868eecb1a
|
Introduce contentEquals/HashCode/ToString for Arrays. Different methods for deep equals/hashCode/toString rather than overloads with a parameter, because most of the time it would be constant, and make these methods inline-only.
Make `contentEquals` infix function.
Add docs.
#KT-13582
|
2016-11-08 17:23:45 +03:00 |
|
Ilya Gorbunov
|
ab2facf030
|
Remove special source generation for js stdlib, use same template, rename generated file.
|
2016-11-08 17:23:45 +03:00 |
|
Alexander Udalov
|
3db459c1d8
|
JS: drop Collections.reverse and java.util.Collections altogether
|
2016-11-07 12:27:54 +03:00 |
|
Alexander Udalov
|
30a7790dca
|
Minimize references to java.util.Collections in stdlib sources
Only three usages are left in platform-independent code: in reverse, sort and
sortWith for mutable lists
|
2016-11-07 12:20:14 +03:00 |
|
Alexander Udalov
|
b52f67132e
|
Fix some warnings in JS-specific stdlib sources
|
2016-11-07 12:20:14 +03:00 |
|
Ilya Gorbunov
|
c2554bd30e
|
Use stable kotlin (1.0.x) for kotlin-stdlib-gen to compile with and compile against.
Makes it easy for kontributors to run the generator.
|
2016-10-21 04:35:00 +03:00 |
|
Ilya Gorbunov
|
0ac461927c
|
Minor: Fix TODOs in stdlib tests
|
2016-10-18 17:13:17 +03:00 |
|
Ilya Gorbunov
|
75069143c7
|
Rewrite ArrayList, AbstractList, AbstractCollection in kotlin.
AbstractList is imported from GWT.
#KT-12386
|
2016-09-24 07:08:21 +03:00 |
|
Ilya Gorbunov
|
47be8e664a
|
Minor: replace var with val.
|
2016-09-22 22:28:14 +03:00 |
|
Ilya Gorbunov
|
9c4221cda8
|
Return EMPTY range [0, -1] when MIN_VALUE is specified as exclusive upper bound.
#KT-12762 Fixed
|
2016-08-26 05:19:51 +03:00 |
|
Ilya Gorbunov
|
bb774cea76
|
Minor: remove anonymous class for Map.asSequence
|
2016-08-10 21:52:24 +03:00 |
|
Ilya Gorbunov
|
fb99919c59
|
Accept maps out-projected by key where possible.
|
2016-08-10 21:52:24 +03:00 |
|
Ilya Gorbunov
|
fed24c2be6
|
Docs: preserve empty lines in the generated documentation to separate summary and paragraphs in the body.
|
2016-08-09 17:43:12 +03:00 |
|
Mikhail Glukhikh
|
94029393cb
|
kotlin-stdlib-gen: UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS
(cherry picked from commit feab6f3)
|
2016-07-27 10:51:51 +03:00 |
|
Alexander Udalov
|
8f33830f29
|
Suppress UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS in several places
This is related to KT-6611 being fixed recently. Note that not all cases of
incorrect "cast never succeeds" were fixed
|
2016-07-13 13:42:42 +03:00 |
|
Ilya Gorbunov
|
8425304866
|
Advance snapshot version to 1.1-SNAPSHOT
|
2016-05-11 17:28:38 +03:00 |
|
Ilya Gorbunov
|
d646afabb2
|
Document functions which return set or map preserving the order of elements/entries.
#KT-11632 Fixed
|
2016-05-08 03:24:03 +03:00 |
|
Ilya Gorbunov
|
249d08a66e
|
Handle special cases of drop, take, takeLast when it is known in advance that the result is a single-item list. #KT-9990
|
2016-04-29 22:21:19 +03:00 |
|
Ilya Gorbunov
|
a665b2183c
|
Optimize operations to return special collection implementations when result is empty or has single element.
#KT-9990
|
2016-04-29 22:21:19 +03:00 |
|
Ilya Gorbunov
|
2d12ed68c8
|
Remove runtime specialization in inline last and lastOrNull to prevent double inlining of predicate body.
|
2016-04-29 22:21:19 +03:00 |
|
Ilya Gorbunov
|
09c1ff1233
|
Do not use indexed access for lists not supporting RandomAccess
Add RandomAccess specialization.
|
2016-04-29 22:21:19 +03:00 |
|
Ilya Gorbunov
|
f4f82656f7
|
Use list iterators instead of indexed access in operations on lists taking a lambda.
Related to #KT-9607
|
2016-04-29 22:21:19 +03:00 |
|
Ilya Gorbunov
|
409094f0f7
|
Make stdlib functions dependent on reified is checks available in JS.
#KT-11346 Fixed
|
2016-04-27 18:22:20 +03:00 |
|
Ilya Gorbunov
|
f35dc47b4e
|
Optimize snapshot operations to return special collection implementations when result is empty or has single element.
#KT-9990 Fixed
|
2016-03-31 21:30:59 +03:00 |
|