Ilya Gorbunov
043b27bfe5
Make more generic signature for reduce and reduceRight methods.
...
Fixes #KT-2287
2015-04-15 17:34:08 +03:00
Michael Nedzelsky
6842c98285
JS: tests for KT-7357: extension functions from external KJS library couldn't be called in some cases
2015-04-15 17:00:06 +03:00
Natalia Ukhorskaya
8bd7fe1464
Gradle: add kotlin outputDir to java classPath if kotlin files are up-to-date
2015-04-14 10:41:42 +03:00
Natalia Ukhorskaya
5e6250511b
Gradle: support for 1.2.0-beta2 com.android.application plugin
2015-04-14 10:41:41 +03:00
Ilya Gorbunov
845d755fdd
Make Char-related constants to be properties in Char companion object.
2015-04-10 15:22:02 +03:00
Evgeny Gerashchenko
eeeb741d42
Added test for obsolete bug and removed workaround in code.
2015-04-08 15:14:16 +03:00
Nikolay Krasko
2946c1d6a8
KT-7271 Accessing an extension property of Char.Companion leads to ClassNotFoundException in runtime
...
#KT-7271 Fixed
2015-04-07 15:59:05 +03:00
Ilya Gorbunov
fbb567c11a
Iterator<T> can be converted to a sequence constrained to be one-time iterable.
2015-04-07 15:35:01 +03:00
Ilya Gorbunov
f2d865e836
Provide constrainOnce extension method for the Sequence.
...
Sequence created from the generator function without an initial value can be iterated only once.
The same is for BufferedReader.lines sequence.
2015-04-07 15:34:59 +03:00
Ilya Gorbunov
698ffa2807
A sequence constructed with initialValue can be iterated multiple times.
2015-04-07 15:31:00 +03:00
Stanislav Erokhin
b703f59e04
Migrate kotlin sources, maven projects and stdlib to new lambda syntax
2015-04-07 13:08:53 +03:00
Stanislav Erokhin
e0988de707
Minor: increase timeout
2015-04-07 13:08:52 +03:00
Stanislav Erokhin
4ef086ea57
Minor. Removed obsolete comment
2015-04-07 13:08:51 +03:00
Stanislav Erokhin
6ab83c9b8c
Added init keyword to builtins, maven projects and stdlib
2015-04-07 13:08:50 +03:00
Ilya Gorbunov
7cac6e3c5e
Provide String.commonPrefixWith and String.commonSuffixWith methods.
...
Char.isHighSurrogate and Char.isLowSurrogate now available in js-stdlib too.
2015-04-07 03:15:03 +03:00
Ilya Gorbunov
70cc7fbf1f
Remove never intentionally used String.hashCode extension.
2015-04-07 03:14:49 +03:00
Ilya Gorbunov
91decc9f33
Add String.contains with Char argument. Fixes #KT-7239.
2015-04-07 03:14:36 +03:00
Ilya Gorbunov
cb85d335ba
Correct deprecated message for trim()
...
Correct documentation description.
2015-04-07 03:14:22 +03:00
Dmitry Kalita
7c911e1f0a
When you build the project for the first time after cleaning, you lose paths to internal_impl jars of support libraries such as
...
build/intermediates/exploded-aar/com.android.support/support-v4/21.0.2/libs/internal_impl-21.0.2.jar
They are absent in javaCompile.getClasspath() when javaCompile task starts.
This patch fixes it.
#KT-7277 Fixed
2015-04-05 13:11:41 +03:00
Ilya Gorbunov
12bf8ca94f
Replace deprecated split usage in kdoc.
2015-04-03 12:13:23 +03:00
Michael Nedzelsky
1c7e1ddf26
JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder
2015-04-03 05:36:18 +03:00
Michael Nedzelsky
0951d69bdc
JS: add metaInfo attribute to Config
2015-04-03 05:35:56 +03:00
Dmitry Jemerov
7b507276ed
frontend diagnostics for kotlin.jvm.overloads
...
#KT-7203 Fixed
2015-04-02 20:30:36 +02:00
Dmitry Jemerov
e15b984232
Implement kotlin.jvm.overloads annotation for generating all overloads of a method that has default parameter values.
...
#KT-2095 Fixed
2015-04-02 20:30:01 +02:00
Pavel V. Talanov
cb7617b3ca
Refactor CompilerConfiguration: keys -> Content roots
...
Represent classpath roots and java source roots as separate entities
2015-04-02 16:13:06 +03:00
Ilya Gorbunov
6aad2b2d65
Add dependency of kotlin-js-tests to kotlin-js-tests-junit.
2015-04-01 23:10:15 +03:00
Ilya Gorbunov
cac058d5a3
Fix endsWith in JS always ignored character case, regardless of the ignoreCase parameter value.
...
startsWith, endsWith again use native implementation when possible.
2015-04-01 23:10:14 +03:00
Ilya Gorbunov
0717705f15
Add requireNotNull with lazy message.
2015-04-01 22:28:47 +03:00
Ilya Gorbunov
f87dcff723
Fixed #KT-6476. last(predicate) and lastOrNull(predicate) use reverse iteration when possible.
2015-04-01 15:51:08 +03:00
Ilya Gorbunov
850d79e61a
Remove negative variants of isEmpty and isBlank (may be included later).
2015-04-01 15:40:18 +03:00
Ilya Gorbunov
ac4b207413
Add isEmpty, isBlank methods and their nullable and negating couterparts.
2015-04-01 15:40:17 +03:00
Denis Zharkov
a4018d9eae
Run "Add 'init' keyword in whole project" quickfix
2015-03-31 20:20:23 +03:00
Ilya Gorbunov
536a977f5c
indexOfAny, lastIndexOfAny return an index value only (similar to indexOf, lastIndexOf).
...
findAnyOf, findLastAnyOf introduced to cover the case when an index and a matched string value is required.
2015-03-31 02:25:19 +03:00
Ilya Gorbunov
bb8df6be4b
Restore startsWith and endsWith overloads taking single char to keep binary compatibility with markdown parser.
2015-03-31 02:25:04 +03:00
Ilya Gorbunov
b3165ac771
Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.
2015-03-31 02:24:50 +03:00
Ilya Gorbunov
d724ce3f7e
Add code generation for asList methods in js.libraries.
2015-03-31 02:24:20 +03:00
Ilya Gorbunov
abdac27b61
Modify split(String) usages within stdlib.
2015-03-31 02:24:06 +03:00
Ilya Gorbunov
6f7a4d8429
Add methods for String: indexOfAny, lastIndexOfAny, indexOf, lastIndexOf, rangesDelimitedBy, splitToSequence, split, lineSequence, lines.
...
Add methods for Char: toUpperCase, toLowerCase.
Add an optional boolean parameter ignoreCase to the methods Char.equals, String.equals, String.startsWith, String.endsWith, String.contains.
2015-03-31 02:23:52 +03:00
Alexander Udalov
32c3bb8c7f
Extract module 'deserialization' out of 'serialization'
...
'deserialization' stays in core because it's needed both in compiler and
reflection, but 'serialization' is used only in the compiler
2015-03-30 19:44:17 +03:00
Alexander Udalov
085bc2197b
Merge module 'serialization.jvm' into 'descriptor.loader.java'
...
It was very small and there proved to be no point in separation of loading Java
classes and deserializing Kotlin classes
2015-03-30 17:22:06 +03:00
Pavel V. Talanov
d109facc6f
Convert JetCoreEnvironment: migrate code in libraries
2015-03-30 15:13:05 +03:00
Mikhail Glukhikh
ef6698bd52
Test fixed
2015-03-30 10:55:24 +03:00
Mikhail Glukhikh
5d7e388276
Fix of KT-7130
2015-03-30 10:55:21 +03:00
Pavel V. Talanov
ed218c473a
Get rid of 'class object' usages in code and builtins
...
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Dmitry Jemerov
a19fadf454
add Module.md to docs build script
2015-03-25 15:32:42 +01:00
Ilya Gorbunov
a34e15e157
Rename methods: trimLeft/Right -> trimStart/End, padLeft/Right -> padStart/End
2015-03-25 03:26:31 +03:00
Ilya Gorbunov
25cfd36e7c
drop, take: combine implementations for Collections, Lists and Iterables.
...
slice: predict length of resulting list.
2015-03-25 03:26:18 +03:00
Ilya Gorbunov
4a7918b0a1
Add takeLast method for String, lists and arrays.
...
Check the parameter n in drop, take and takeLast methods.
2015-03-25 03:26:06 +03:00
Ilya Gorbunov
05b5afcb94
Add removePrefix, removeSuffix, removeEnclosing methods.
...
Deprecate trimLeading/trimTrailing/trim(String) methods in favor of new ones.
2015-03-25 03:25:53 +03:00
Ilya Gorbunov
0484d3bf2f
Imperative trim implementation to prevent double lambda expansion in inline function.
2015-03-25 03:25:40 +03:00