Commit Graph

353 Commits

Author SHA1 Message Date
Evgeny Gerashchenko a4ab2afa94 Better method names. 2012-07-03 13:35:53 +04:00
James Strachan 9b2e28c76e fixed test case 2012-07-03 08:54:25 +01:00
James Strachan b960bea2d9 added test cases to try reproduce yesterdays JS bug with missing "this.drop(1)" in List.tail property, found another JS compile issue... 2012-07-03 08:45:26 +01: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 4b15023aec Turn off inlining. May be it'll help with KT-2314. 2012-07-02 17:29:10 +04: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
Pavel V. Talanov 9878b60462 Fix KotlinLibTest and remove redundant tests. 2012-07-02 17:29:03 +04:00
Pavel V. Talanov 49c6555e5e JsTests speed up: cash the scope with Kotlin library. Refactor CodeGenerator class.
About 10% speed up (not much but still...)
2012-07-02 17:29:02 +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
James Strachan d6d99ec226 temporary disabled 2 failing JS compile tests until I figure out the fix ;) 2012-06-26 06:18:52 +01:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00
James Strachan 7b36a22264 enabled the compiling of most of the collections based standard kotlin library to JavaScript 2012-06-22 14:52:13 +01:00
James Strachan 43b78649f3 added better error reporting, showing the real location of the kotlin code that causes the problem 2012-06-22 14:33:07 +01:00
James Strachan 32e0b06de1 added location information for when the assertion fails 2012-06-22 14:25:26 +01:00
James Strachan 1c26d7212f added some documentation on how the JavaScript generation and testing of the standard library works 2012-06-21 16:12:23 +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 0a3809fa2e disabled a failing unit test for JS generation (will re-enable soon...) and made the generated QUnit test code work with many test classes 2012-06-19 08:12:28 -05: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
Stepan Koltsov 11f2a98032 revert "DescriptorMatcher" 2012-06-18 20:53:55 +04:00
Stepan Koltsov a95cc798a2 remove JetStandardLibrary dependency from jvm backend 2012-06-17 03:53:12 +04:00
Stepan Koltsov 3a9f6c0928 DescriptorMatcher 2012-06-16 06:44:15 +04:00
Stepan Koltsov 7116beb95a JetScope.get* return Collection, not Set 2012-06-16 06:44:12 +04:00
Stepan Koltsov 0b697847b2 ClassDescriptorFromSoruce
getUnsubstitutedPrimaryConstructor is needed only when analyzing source.
Primary constructor only exists in source code.
2012-06-16 00:22:22 +04:00
pTalanov ee689cb1ab Safe calls work for native properties
#KT-2209 fixed
2012-06-15 19:08:46 +04:00
pTalanov 3bb14ecd7f Add toString call when interpolating strings 2012-06-15 18:19:10 +04:00
pTalanov 1ba6470e8d Check for undefined whenever check for null 2012-06-15 18:19:08 +04:00
pTalanov bdd83d86f6 Modified StdLibTest to check for node types of the created elements 2012-06-15 15:08:42 +04:00
pTalanov c1a2eaf47a Support class objects for native classes 2012-06-15 15:08:41 +04:00
pTalanov ea5f4d428c Refactor NativeInteropTest 2012-06-15 15:08:40 +04:00
Alexander Zolotov ae00b0bb15 Fix foldRight implementation for iterables 2012-06-15 13:22:47 +04:00
Stepan Koltsov 1ca80f74fd better DeclarationDescriptorVisitor
* it is interface
* no methods for abstract classes
* DescriptorRenderer now uses it do not forget about anything
2012-06-13 21:11:08 +04:00
Stepan Koltsov edad5c9266 merge analyzeBodies functions from JS and JVM backend 2012-06-13 19:53:08 +04:00
Stepan Koltsov 9290f55bad JavaDescriptorResolver is not needed for body resolver
* create InjectorForBodyResolve
* split ScriptDescriptor into ScriptDeclarationResolve and ScriptBodyResolver
2012-06-13 19:27:17 +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
pTalanov 9394e21208 Remove symbol added by accident into javalang.kt 2012-06-13 18:47:06 +04:00
pTalanov 7c1f670942 Remove exceptions from js.* package. Move them to java.lang . Import java.lang by default 2012-06-13 18:13:44 +04:00
James Strachan e894054bba exclude the base class from being executed as a test case 2012-06-12 19:53:27 +01:00
James Strachan 60738b7b4f minor refactor of the JS test cases to ensure they don't collide in the generated JS code 2012-06-12 19:51:34 +01:00
Stepan Koltsov a55c8f1a04 move trivial method from TopDownAnalyzer to BodyResolver 2012-06-12 18:50:41 +04:00
James Strachan 768469fb23 added support for generation of QUnit unit tests from Kotlin JUnit test cases 2012-06-12 12:48:14 +01:00
Stepan Koltsov 2ae632aa9a chop Impl suffix when generating field name 2012-06-08 03:38:28 +04:00
pTalanov 1937823a77 Test for evaluating properties lazily 2012-06-05 21:56:32 +04:00
Andrey Breslav 91606a3901 Introduce 'reified' instead of 'erased' 2012-06-05 20:19:07 +04:00
pTalanov 6b9495a159 Cosmetics 2012-06-05 19:29:25 +04:00
pTalanov 95e3080cc7 Manually assemble kotlinLib.js from ecma version independent and dependent parts and it to dist 2012-06-05 19:29:24 +04:00
pTalanov b4a0ecf04e Fix copyrights to their previous state (not sure they're needed at all) 2012-06-05 19:29:23 +04:00
pTalanov 104061b7f8 Cosmetics after pulling https://github.com/JetBrains/kotlin/pull/67 2012-06-05 19:29:21 +04:00