Commit Graph

17099 Commits

Author SHA1 Message Date
Pavel Talanov dcb7b3264c Refactored tests a bit. Working on KotlinLibTest 2011-11-16 17:25:50 +04:00
Pavel Talanov 978d827630 Added suppoer for null literal and a test for Traits. 2011-11-16 17:25:49 +04:00
Pavel Talanov b9a60c8675 Refactored ClassTranslator code a bit. Added support for different order of inherited classes. 2011-11-16 17:25:48 +04:00
Pavel Talanov ec1b226453 Added basic trait support. Added a couple of tests. 2011-11-16 17:25:48 +04:00
Pavel Talanov 24d1cb1a1f Added support for passing parameters to ancestor constructor. Added a test. 2011-11-16 17:25:47 +04:00
Pavel Talanov 34d649938b Added one more test for initialization order. 2011-11-16 17:25:46 +04:00
Pavel Talanov 17e41e627d Found and solved a problem which caused only one ancestor's constructor to be called. Added "super_init" method generation to InitializerVisitor. Worked on KotlinJsLib to solve this issue. This solution should evolve in the future. 2011-11-16 17:25:46 +04:00
Pavel Talanov a120125e5a Added constructor parameter support. Properties declared as constructor parameters and base class constructor calls are not implemented yet. 2011-11-16 17:25:45 +04:00
Pavel Talanov 5449e76669 Added BindingUtils.isStatement. Still issue not solved. 2011-11-16 17:25:44 +04:00
Alex Tkachman 1b04870fa4 proper try/catch/finally 2011-11-16 14:26:16 +02:00
Sergey Ignatov 234f98b164 private dictionary changed 2011-11-16 13:24:15 +04:00
Sergey Ignatov 7d6513f49f added constructors for enums 2011-11-16 13:23:18 +04:00
Sergey Ignatov fb6ac8e4b6 Converter.isConstructorPrimary signature changed 2011-11-16 13:19:43 +04:00
Sergey Ignatov d0c8b104d5 working with import statements improved 2011-11-16 12:58:26 +04:00
Stepan Koltsov 3b17b3fac7 typer tests for backing fields 2011-11-15 19:54:46 +04:00
Alex Tkachman 8087d8da5a TypeInfo.getTypeClass renamed to getJavaClass 2011-11-15 17:03:02 +02:00
Alex Tkachman 84593f2cfb KT-513 Proper use of resolved call in case of infix calls 2011-11-15 16:52:35 +02:00
Sergey Ignatov bbcf8be5bf working with package statement improved 2011-11-15 18:13:39 +04:00
Sergey Ignatov 58176f2361 remove TODO from ArrayType.toKotlin() 2011-11-15 18:13:39 +04:00
Sergey Ignatov d45e69b538 move isEmpty() from Expression to Element 2011-11-15 18:13:39 +04:00
Sergey Ignatov 9782fc700f AnyType.class expression supported 2011-11-15 18:13:38 +04:00
Sergey Ignatov a80f0eecd4 cleanup 2011-11-15 18:13:38 +04:00
Sergey Ignatov 437fe1b6b4 getAllFields() replaced by getFields() 2011-11-15 18:13:38 +04:00
Sergey Ignatov 4c7056b2f9 added test for main function 2011-11-15 18:13:38 +04:00
Sergey Ignatov 6a979e540d set with keyword updated 2011-11-15 18:13:38 +04:00
Sergey Ignatov f5c1f098be Converter cleanup 2011-11-15 18:13:38 +04:00
Sergey Ignatov dba5e97b7a added default params for all primitive types 2011-11-15 18:13:38 +04:00
Sergey Ignatov ab85374856 some tests added for previous commit 2011-11-15 18:13:38 +04:00
Alex Tkachman 6c3294ca3a KT-515 TypeInfo.getTypeClass() method 2011-11-15 16:11:14 +02:00
Maxim Shafirov 93b935d4ba KT-514 NPE 2011-11-15 16:03:58 +04:00
Alex Tkachman aaed9b0325 KT-504 array like expressions with type parameters 2011-11-15 12:42:51 +02:00
Stepan Koltsov 74654c467c group tests by directory 2011-11-15 00:58:28 +04:00
Pavel Talanov 55d1f0f267 Added support for if else clause as an expression. It has major issue with statement/expression resolving for JetExpression. 2011-11-14 22:57:56 +04:00
Pavel Talanov ed0c9f621d Added tests for remaining unary operators (!,+, -).Verified that generated code is what expected. 2011-11-14 22:57:55 +04:00
Pavel Talanov 2ef2eee03e Implemented basic version of unary operation translation(valid for primitive types) and added a 2 tests for it. 2011-11-14 22:57:54 +04:00
Pavel Talanov 29ae566681 Introduced OperationTranslator class and started work on Unary Expression. 2011-11-14 22:57:54 +04:00
Pavel Talanov 4111833376 Found a bug so work on constructor parameters has stopped.
i
2011-11-14 22:57:53 +04:00
Pavel Talanov 7645e9f2bf Renamed function test suite to expression test suite. Work in progress on constructor parameters. 2011-11-14 22:57:52 +04:00
Pavel Talanov 77f8843808 Added anonymous initializer support in class declarations. 2011-11-14 22:57:52 +04:00
Alex Tkachman 3b2fb0da8f KT-508 accessors for enclosed private fields 2011-11-14 19:34:00 +02:00
Maxim Shafirov cf3217cdc1 SOE fix 2011-11-14 21:18:46 +04:00
Maxim Shafirov f3c2a48f92 null is valid compile time value 2011-11-14 21:18:46 +04:00
Andrey Breslav 1befef2a2f toString fixed in Call 2011-11-14 20:10:41 +03:00
Andrey Breslav ee8c96ddee NPE fixed 2011-11-14 20:10:25 +03:00
Andrey Breslav 4902eb5d0d Merge remote branch 'origin/master' 2011-11-14 20:09:23 +03:00
Andrey Breslav 5ae6941375 Proper return types for unary plus and minus 2011-11-14 20:09:18 +03:00
Andrey Breslav b6a07c1e29 Merge remote branch 'origin/master' 2011-11-14 17:34:38 +03:00
Andrey Breslav 77e0ce726d readLine() implemented via redirection 2011-11-14 17:34:30 +03:00
Stepan Koltsov 16d39b9cd6 replace NotImplementedException with IllegalStateException
dropping dependency on commons-lang
2011-11-14 17:42:06 +04:00
Sergey Ignatov 016064c273 base class params added to the class declaration 2011-11-14 17:29:38 +04:00