Commit Graph

22272 Commits

Author SHA1 Message Date
Alexey Tsvetkov 2f786efebf JS: support is-check on reified parameter 2015-05-13 12:15:29 +03:00
Alexey Tsvetkov 2c99484066 Minor in JS: use toTypedArray in JS tests 2015-05-13 12:15:29 +03:00
Alexey Tsvetkov 8cdff2439b JS: added reified is-check test cases 2015-05-13 12:15:29 +03:00
Alexey Tsvetkov 0a3ed7f12e JS: small fixes after conversion 2015-05-13 12:15:29 +03:00
Alexey Tsvetkov f0c2aa9eb2 JS: converted CallArgumentTranslator to Kotlin 2015-05-13 12:15:29 +03:00
Alexey Tsvetkov cdfd88cc2f JS: changed file extension of CallArgumentTranslator.java -> .kt 2015-05-13 12:15:29 +03:00
Ilya Gorbunov f7aa997003 Provide fast path for negative index values in elementAt.
Minor: kdoc wording.
2015-05-12 21:07:24 +03:00
Dmitry Jemerov 4bdf598bfe compiler testdata: s/trait/interface 2015-05-12 19:43:17 +02:00
Ilya Gorbunov a5ed5d4269 Generate elementAtOrNull and elementAtOrElse extension methods for iterables, collections, sequences, etc.
#KT-6952 Fixed
2015-05-12 20:08:20 +03:00
Michael Nedzelsky c420e0f010 JS: eliminate direct usage of builtins serialization for js 2015-05-12 19:30:29 +03:00
Michael Nedzelsky 6dc7c4bc29 add SerializedResourcePaths, extract base code from builtins package fragment, data finder 2015-05-12 19:30:26 +03:00
Michael Nedzelsky d8ca5be29d JS: KotlinJavascriptMetadataUtils: ABI 1 -> 2 2015-05-12 19:30:23 +03:00
Michael Nedzelsky de3a31b07c JS: add import from descriptors to js.proto 2015-05-12 19:30:20 +03:00
Dmitry Jemerov 2a99f757c4 replace 'trait' keyword with 'interface' in library code 2015-05-12 17:07:46 +02:00
Dmitry Jemerov b1c4a5670a provide element type name for multi-declaration entries; enable in-place rename for those; show local properties as "variable"
#KT-7627 Fixed
2015-05-12 16:18:03 +02:00
Dmitry Jemerov 0582d1947d JetRefactoringSupportProvider: J2K 2015-05-12 16:18:01 +02:00
Dmitry Jemerov d990bbffdc JetRefactoringSupportProvider: rename to .kt 2015-05-12 16:18:01 +02:00
Dmitry Jemerov 9975bb8935 replace 'trait' keyword with 'interface' in user-visible messages and code generation tools 2015-05-12 11:49:37 +02:00
Dmitry Jemerov 25959fefdc J2K: generate 'interface' keyword instead of 'trait' 2015-05-12 11:49:37 +02:00
Ilya Gorbunov 69a58d1f0e Minor: correct kdoc comment. 2015-05-12 12:25:27 +03:00
Michael Bogdanov d6964525b2 Fix for KT-7490: Bad bytecode generated by delegates and lambdas
#KT-7490 Fixed
2015-05-12 12:06:11 +03:00
Alexey Sedunov aed6ed0f9b Introduce Parameter: Fix occurrence replacement when parameter name/type is changed by the user 2015-05-12 01:01:43 +03:00
Alexey Sedunov ca54fe0883 Introduce Property: Fix primary occurrence replacement
#KT-7610 Fixed
2015-05-11 20:58:02 +03:00
Alexey Sedunov 339383b5b1 Extract Function: Add test for ===
#KT-7663 Fixed
2015-05-11 20:57:59 +03:00
Alexey Sedunov c4e20b5cc1 Control-Flow: Generate mark instruction before the call/unresolved call instruction
#KT-7663 In Progress
2015-05-11 20:57:56 +03:00
Ilya Gorbunov 34526005d0 Provide a way to construct an empty typed array without init lambda. 2015-05-09 11:45:43 +03:00
Ilya Gorbunov 31b9ee65e0 Change the expected output after joinToString signature was changed. 2015-05-09 01:11:51 +03:00
Ilya Gorbunov 16d20ff009 Temporary add jvm.overloads annotation for generated joinToString() method.
Stdlib generator: allow to specify arbitrary annotations for all or some of generic function expansions.
2015-05-09 01:11:49 +03:00
Ilya Gorbunov d531d7130f Add an optional parameter to joinToString() and joinTo() functions: lambda function which maps the element to string.
#KT-5468 Fixed
2015-05-09 01:11:47 +03:00
Ilya Gorbunov c8a76f6344 Merge overloads String.compareToIgnoreCase and String.compareTo with an optional parameter. Provide CASE_INSENSITIVE_ORDER comparer in String.Companion. 2015-05-09 01:11:45 +03:00
Ilya Gorbunov 64b23054a6 Specify abbreviated code for each general Unicode category. 2015-05-09 01:11:43 +03:00
Ilya Gorbunov 1eed3675fe Add Char.isTitleCase, Char.toTitleCase methods (JVM). 2015-05-09 01:11:40 +03:00
Ilya Gorbunov efe6bee106 Add Char.isSurrogate function and Char.MIN_SURROGATE, Char.MAX_SURROGATE constants. 2015-05-09 01:11:38 +03:00
Ilya Gorbunov 062d080e80 CharCategory and CharDirectionality enums for JVM. 2015-05-09 01:11:36 +03:00
Ilya Gorbunov fb5a3a771c String.split(Pattern, limit) now treats limit differently: 0 means no limit is specified, but trailing empty elements are not stripped; -1 and other negative values are not allowed. 2015-05-09 01:11:34 +03:00
Ilya Gorbunov b1255cf95b 2nd stage of split semantics change: remove deprecated String.split(String), rename splitBy back to split. 2015-05-09 01:11:32 +03:00
Ilya Gorbunov aa6bdb039b Take caution when advancing to the next match after an empty string was matched not to stuck at the same position. 2015-05-09 01:11:30 +03:00
Ilya Gorbunov 260553d516 Temporary workaround due to KT-7502.
Correct usage of joinToString.
Test for passing multiple options.
2015-05-09 01:11:28 +03:00
Ilya Gorbunov 81325208be Remove Regex() and toRegex() overloads with vararg options. Now only zero, one or set of options are allowed. 2015-05-09 01:11:26 +03:00
Ilya Gorbunov 44d7f768c7 Visibility of Regex primary constructor. Provide adapting methods Pattern.toRegex and Regex.toPattern. 2015-05-09 01:11:24 +03:00
Ilya Gorbunov 6c9ca39286 Implement CharSequence.isEmpty method in stdlib.js. Remove corresponding intrinsic. 2015-05-09 01:11:22 +03:00
Ilya Gorbunov 7a51123d26 Make native* methods internal in stdlib.js as it was intended.
They are not checked with stdlib-validator, so it is possible.
2015-05-09 01:11:20 +03:00
Ilya Gorbunov ae13359adc Change package of extensions and other top-level declarations from kotlin.js to kotlin to match corresponding ones in stdlib for JVM. 2015-05-09 01:11:18 +03:00
Ilya Gorbunov 908864b0c0 Move native RegExp to kotlin.text.js package 2015-05-09 01:11:16 +03:00
Ilya Gorbunov a5177b785d Add String.replaceFirst methods.
String.replaceFirst(String, String) temporary named as replaceFirstLiteral.
2015-05-09 01:11:14 +03:00
Ilya Gorbunov 157c86b9c6 Empty string is supported as a delimiter in split and as an oldValue in replace. 2015-05-09 01:11:12 +03:00
Ilya Gorbunov 43dd23bd4b Remove some conflicting declarations from test, convert code to new Regex API 2015-05-09 01:11:10 +03:00
Ilya Gorbunov 2ae767a049 Add deprecated matcher() method to Regex to fix build. 2015-05-09 01:11:08 +03:00
Ilya Gorbunov 5f4e3ae6af Documentation and visibility of members.
Add hasMatch method to check whether there is at least one match exists.
IGNORE_CASE always includes UNICODE_CASE on JVM.
2015-05-09 01:11:07 +03:00
Ilya Gorbunov db13705506 Tests for match and replace. 2015-05-09 01:11:04 +03:00