Commit Graph

114 Commits

Author SHA1 Message Date
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
Pavel V. Talanov 758254a5b4 Attempt to fix mvn build. 2012-08-14 18:48:26 +04:00
Pavel V. Talanov 9dce8a9f33 Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/factories/RangesFIF.java
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/patterns/NamePredicate.java
2012-08-14 13:04:38 +04:00
Pavel V. Talanov 4320a5fb61 Don't generate code for javautilCode.kt. 2012-08-14 12:44:51 +04:00
Evgeny Gerashchenko a4031225d0 Changed usages of upto/downto in test to rangeTo and downTo, respectively.
#KT-2519 in progress
2012-08-08 14:48:04 +04:00
Evgeny Gerashchenko 3dfb510a62 Regenerated JavaScript stubs. 2012-08-08 14:48:03 +04:00
James Strachan 7d0b03de76 added the dom events API to the kotlin standard library and get it compiling as JS too (not unit tested yet mind you ;) 2012-07-25 02:57:53 +01:00
James Strachan 0ccc0de2fe add support for java.util.Date for both JVM and JS back ends (we could maybe introduce a kotlin.Date pseudo type one day) 2012-07-25 02:57:53 +01:00
James Strachan 6fd3cd0bf0 added support for java.io.Closeable as a standard interface 2012-07-24 11:28:19 +01:00
James Strachan b25c27bfed added first cut of the DOM events API (its not all compiling to JS yet though due to Class<T> not being supported) 2012-07-24 11:10:50 +01:00
James Strachan e9ed7b6d2a add more array based tests and JS compliant typesafe array constructor functions 2012-07-05 16:27:39 +01:00
James Strachan b4dace2c29 added a native array() function for the JS generation; also refactored the code generated collection APIs so that most of them can be used with JavaScript and included more array based APIs into the JS generation 2012-07-05 15:49:10 +01:00
James Strachan 925e5b2236 refactored the JS kotlin code so that we've a simple naming convention (*Code.kt") to refer to library code which needs to generate JS code to separate those files from the pure definitions which just refer to existing JS code already - this will help make it easier to keep the maven build and the js test cases in sync 2012-07-05 10:34:00 +01:00
James Strachan c2ca06a8cf simplified the code to try get the JS generation to work (seems to not like fully qualified classes) 2012-07-04 22:02:39 +01:00
Pavel V. Talanov 92231d2eae Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.tests/test/org/jetbrains/k2js/test/SingleFileTranslationTest.java
	js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestToJSTest.java
2012-07-04 18:32:24 +04:00
Pavel V. Talanov a3a2f51c9c More missing "public" 2012-07-04 12:40:39 +04:00
James Strachan 64b00f0a19 fixed bug in generated dom (missing public on the Node class object) and split the JVM specific Iterator standard library to a separate file for easier JS reuse 2012-07-04 08:46:26 +01:00
James Strachan b9edbea926 latest code generated standard library apis 2012-07-04 08:28:39 +01:00
James Strachan 8f94f5e43f added a bunch more JS test cases from standard library test cases 2012-07-03 22:20:00 +01:00
James Strachan ffffe84fcb added more working DOM test cases for JS 2012-07-03 19:54:32 +01:00
Pavel V. Talanov 592b0e9c37 Specify visibility in some files in jslibs 2012-07-03 21:36:04 +04:00