Commit Graph

134 Commits

Author SHA1 Message Date
Zalim Bashorov 223a14a855 Moved MutableMap.set from Maps.kt to MapsJVM.kt to avoid ambiguity when compile MapTest.kt by JS backend. 2014-07-16 21:35:10 +04:00
Zalim Bashorov 28228d23b1 JS stdlib: added missed constructors for HashSet, LinkedHashSet, HashMap and LinkedHashMap. 2014-06-26 16:33:14 +04:00
Ilya Ryzhenkov 516bae17d7 StringBuilder builder and appendln 2014-06-24 23:49:15 +04:00
Zalim Bashorov 6f5c88c21f JS stdlib: added LinkedHashMap abd LinkedHashSet. 2014-06-20 16:42:43 +04:00
Ilya Ryzhenkov 9ec78a437d Throw NoSuchElementException in appropriate cases #KT-4998 Fixed 2014-06-10 11:11:00 +04:00
Alexander Udalov d78d4bc44c Disallow extension properties with backing fields
#KT-1682 Fixed
2014-05-29 21:24:05 +04:00
Ilya Ryzhenkov aee199b5b0 Add reverse() function to js version of StringBuilder 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov e37d8174c3 New stdlib generators 2014-03-19 20:25:11 +04:00
Ilya Ryzhenkov b60fd5acc1 Stable order in generated code for JS library 2014-03-19 20:25:10 +04:00
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00
Andrey Breslav da83154454 Nullability fixed for a JS DOM stub 2014-02-25 15:12:20 +04:00
Zalim Bashorov 5c0eeb59f6 JS backend: dropped unnecessary intrinsics in StringFIF. Added tests for CharSequence.size, CharSequence.length, CharSequence.length() and CharSequence.isEmpty(). 2014-02-03 13:31:24 +04:00
Zalim Bashorov 0cb016b187 JS stdlib: drop unnecessary code. 2014-02-03 13:31:23 +04:00
Mikhael Bogdanov d11311ec20 Test compilation fix 2013-12-02 18:30:42 +04:00
Zalim Bashorov cf717f8cb7 JS backend: minor fixes in k2js stdlib. 2013-11-17 03:21:55 +04:00
Erokhin Stanislav bb6fd90bd9 JS backend: move StringBuilder to java.lang. Fix append return type. 2013-11-05 20:55:49 +04:00
Evgeny Gerashchenko 2ae1a2c81b Added copyToArray intrinsic method.
#KT-3352 fixed
2013-10-01 15:11:30 +04:00
Evgeny Gerashchenko d56c59d9d7 Removed toArray() from collections (few tests are still failing).
#KT-3352 in progress
2013-10-01 15:11:30 +04:00
develar 711aee6026 JS backend: added replacer and space parameters to JSON.stringify
#KT-2983 in progress

(cherry picked from commit 058b147)
2013-09-20 17:21:14 +04:00
develar 764b5c5a90 JS backend: use generated code(org.w3c.*) for browser API.
#KT-2983 in progress

(cherry picked from commit 8b839a9)
2013-09-20 17:21:13 +04:00
Mohammad Shamsi 5584e6ce18 KT-3715 make Collection.notEmpty a property
Renamed "notEmpty()" methods to "isNotEmpty()" in following classes:
    - Collection
    - String
    - Array

Added "notEmpty" property to Collection class
2013-08-19 01:20:56 +08:00
develar 632d878877 JS backend: use native function for parseInt.
Add radix parameter to parseInt.

(cherry picked from commit b6be98d)
2013-08-09 14:29:55 +04:00
develar 222c05dd00 JS backend: made Json::get and Json::set intrinsic.
(cherry picked from commit b1692e1)
2013-08-09 14:29:54 +04:00
develar 8867c7a33f JS backend: fixed Map set/get -- should work with jet Map/MutableMap.
Added to PatternBuilder the ability to check that method has been overridden.
2013-08-09 14:29:54 +04:00
develar 421c896416 JS backend: removed unused extension function List::equals. 2013-08-09 14:29:54 +04:00
develar 411caef8ce JS backend: cosmetic changes in javautil.kt:
- added some methods to AbstractList
 - fixed codestyle
 - moved up LinkedList declaration
2013-08-09 14:29:53 +04:00
develar 1435bdb7c7 JS backend: made some exceptions more JS idiomatic -- translate Exception to Error, IndexOutOfBounds and IndexOutOfBoundsException to RangeError. 2013-08-09 14:29:53 +04:00
develar 995f898116 JS backend: added String.isEmpty
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar 7c18ab3ca8 JS backend: cleanup strings code.
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
Zalim Bashorov 9b09d5f6df JS backend: fixed String.split for the case when using regexp.
Added(overload) String.split with limit parameter.
2013-08-09 14:29:51 +04:00
develar f1c258f601 JS backend: make MutableMap.set as function intrinsic.
Fixed test WebDemoExamples2Test#builder.
2013-08-09 14:29:51 +04:00
develar 8302879991 JS backend: added reviver parameter to JSON.parse.
Fixed code style in json.kt.

(cherry picked from commit b3bf97c)
2013-08-09 14:29:51 +04:00
develar 1af35a6aff JS backend: make intrinsic array factory methods.
#KT-2511 fixed

(cherry picked from commit 31843c5)
2013-08-09 14:29:50 +04:00
develar 94152da97b JS backend: fixed return type for Window.setInterval -- should be Long instead Double? 2013-07-23 19:10:54 +04:00
develar d854f93640 JS backend: using native implementations in kotlin_lib.js for String.startsWith, String.endsWith and String.contains. 2013-07-23 19:10:53 +04:00
Evgeny Gerashchenko 5ccbce6de6 Got rid of "tuple" word all over the code. 2013-03-22 16:38:25 +04:00
Zalim Bashorov 220682afe2 fixed mapping sort and max functions from java.util.Collections 2013-03-06 19:16:14 +04:00
Maxim Shafirov 15446e98b8 Fix tests failing after stdlib generation refactoring 2013-02-13 12:41:12 +04:00
Andrey Breslav 5b93ae2d08 Variance in functions/properties removed from stdlib 2012-11-24 15:59:16 +04:00
Andrey Breslav da2f886bee Redundant projections removed from code 2012-11-24 15:59:15 +04:00
develar 2f8af7bcec Throwable constructor parameter message should be nullable string
Cherry-picked from:
https://github.com/develar/kotlin/commit/7604aa2a0f21a3fa78d94bbabc0f8a6c140c14e4
https://github.com/develar/kotlin/commit/578d51f783bce7da71f08e21706517416ed9f7a6
2012-10-03 13:01:20 +04:00
Evgeny Gerashchenko 533cc5a04d Replaced sure() invocations with '!!' operator in js.libraries/src/core. 2012-09-17 18:00:21 +04:00
Svetlana Isakova bbc5869ed4 changes in Collection interfaces
MutableList returns MutableListIterator
MutableMap returns MutableSet as keySet(), values(), entrySet()
2012-09-13 17:28:30 +04:00
Natalia.Ukhorskaya 60bdae9d75 Prohibit body for annotation class
#KT-1886 Fixed
2012-09-13 16:27:48 +04:00
Andrey Breslav 89fd0526cf TupleN classes and their usages replaced by Pair and Triple
(KT-2358 Drop tuples)

 #KT-2358 In Progress
2012-09-07 21:26:42 +04:00
Andrey Breslav 8333448f10 Pair and Triple classes added 2012-09-07 21:26:12 +04:00
Svetlana Isakova e622be8a2d changed js tests/library after collections mapping 2012-09-05 18:55:17 +04:00
Svetlana Isakova 8bbb61a98c update js view on java.util library after collections mapping 2012-09-05 18:55:17 +04:00
Svetlana Isakova a5aaa3dadc remove java's Iterator,Iterable
from java script mirror to java standard library
2012-08-16 18:39:24 +04:00
Svetlana Isakova 1b28604268 java Iterable/Iterator replaced to jet ones
in completion, js tests
2012-08-16 18:39:23 +04:00