Commit Graph

96 Commits

Author SHA1 Message Date
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
James Strachan 25bf753369 added test case for KT-2354 2012-07-03 13:55:49 +01:00
Pavel V. Talanov e1ecdead75 Turn off the failing StdLibToJSTest. It fails due to some frontend bug. 2012-07-03 16:41:03 +04:00
Pavel V. Talanov d6ffb42497 pull https://github.com/develar/kotlin ecma5-iter3 Make most of the tests work.
Thanks to develar.
2012-07-03 15:27:37 +04:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
Pavel V. Talanov da24b36071 Turn on tests. 2012-07-02 17:29:09 +04:00
Pavel V. Talanov 5004b2e01b Separate library files which contain code and those which declarations only. Fixes builder test/ 2012-07-02 17:29:08 +04:00
Pavel V. Talanov 53e77abefc Fix most of the tests. Turn off 3 of the tests temporarily. 2012-07-02 17:29:07 +04:00
Pavel V. Talanov 3504106981 JsTests speed up: Analyze standard library only once. 2012-07-02 17:29:05 +04:00
James Strachan 63e0f169fc re-enabled compiling to JS test cases now we've fixed the compilation of the latest comparator based standard library code 2012-06-29 23:13:05 +01:00
develar 77320e07f2 ArrayList improvements:
1) remove must compare object using Kotlin.equals (the same as in contains)
2) use ArrayIterator instead of ListIterator (perfomance)
3) remove duplicated code (refactor)
4) toArray
5) fix "add((index, item)" — correct translation to JavaScript "addAt"
2012-06-28 11:13:48 +04:00
develar 39fe690ec8 js enumerable for ecma5 2012-06-28 09:57:18 +04:00
develar 3e491ba7f1 https://developer.mozilla.org/en/JSON (cherry picked from commit f91d3a8) 2012-06-28 09:57:18 +04:00
develar 47a8ff060d KT-2137 console 2012-06-28 09:57:17 +04:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00
James Strachan 8a6b752357 refactored the standard library so most of the collection APIs in the standard library can be compiled to JS 2012-06-21 15:53:39 +01:00
James Strachan 071e276e08 started compiling more of the kotlin library to JS; now testing the String methods in JS 2012-06-19 07:23:42 -05:00
Alexander Zolotov ae00b0bb15 Fix foldRight implementation for iterables 2012-06-15 13:22:47 +04:00
James Strachan 3765e85ca8 compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay! 2012-06-13 16:14:13 +01:00