Commit Graph

63 Commits

Author SHA1 Message Date
Pavel Talanov 16c6e8bee5 Added support for break expressions in while/do while. 2011-11-18 13:19:23 +04:00
Pavel Talanov 37ea3c75ca Split expression tests into different categories. 2011-11-18 13:12:47 +04:00
Pavel Talanov 95ab245f15 Added support for multiple cases in one when entry. 2011-11-18 12:38:06 +04:00
Pavel Talanov d1c49f80c8 Refactoring. 2011-11-17 22:28:46 +04:00
Pavel Talanov ca57aee040 Added tests and support for binary with type RHS expressions. 2011-11-17 20:19:34 +04:00
Pavel Talanov d4fb413778 Supported variable is value pattern matching. 2011-11-17 18:39:40 +04:00
Pavel Talanov 98bcfe7847 Fixed a bug where multiple when entries could execute in one statement. 2011-11-17 18:05:47 +04:00
Pavel Talanov 5841049683 Supported another case of when expression. 2011-11-17 17:41:00 +04:00
Pavel Talanov d0239085c1 Supported another case of when expression. 2011-11-17 17:40:54 +04:00
Pavel Talanov bd33b23f51 Added support for simple case of when expression. 2011-11-17 17:40:53 +04:00
Pavel Talanov 628a2334f5 Added support for returning value from safe qualified expression. 2011-11-17 17:40:52 +04:00
Pavel Talanov ce39645ccd Added support for simple case of safe qualified access. 2011-11-17 17:40:52 +04:00
Pavel Talanov 57f5b2cc7d Supported negated is operation. 2011-11-17 17:40:51 +04:00
Pavel Talanov fec7539f8c Supported (Variable is Type expression) for user defined classes. 2011-11-17 17:40:50 +04:00
Pavel Talanov 9d848cb8a5 Added a test for a trait extending two traits. 2011-11-17 17:40:50 +04:00
Pavel Talanov 81d7f86b93 Worked on kotlinJsLib and supported trait extending other trait. 2011-11-17 17:40:49 +04:00
Pavel Talanov eec6fd137f Refactored test code a bit. 2011-11-17 17:40:48 +04:00
Pavel Talanov cc52c0f1c1 Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:27:54 +04:00
Pavel Talanov f634fce8b1 Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:25:53 +04:00
Pavel Talanov eb888b7efe Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:25:52 +04:00
Pavel Talanov 23dd696df2 Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:25:52 +04:00
Pavel Talanov 49552568fe Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:25:51 +04:00
Pavel Talanov 8f99212d9e Refactored test code a lot. Introduced KotlinLibTest. 2011-11-16 17:25:50 +04:00
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
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
Pavel Talanov 158fccbac5 Added Translation class for better instance creation control over the code. 2011-11-12 22:56:47 +04:00
Pavel Talanov 997ddce4b5 Added support for unqualified property reference inside method body. 2011-11-12 21:13:20 +04:00
Pavel Talanov 74742c899c Added syntactic checks to main. 2011-11-12 19:53:52 +04:00
Pavel Talanov 85b1c1d3d7 Added class inheritance support and reorganised test classes.
Minor impovements include:
1. Support for functions with no body
2. Not equals operator
3. Refactorings.
2011-11-12 18:09:46 +04:00
Pavel Talanov 8e147b26a7 Added default getter/setter support and initializer support. 2011-11-10 21:29:50 +04:00
Pavel Talanov fe54dc78e8 Added a test for extractor. 2011-11-10 14:15:30 +04:00
Pavel Talanov f4b18c277f Added DeclarationExtractor logic. 2011-11-10 14:06:15 +04:00
Pavel Talanov da1a1a3727 Added simple method call support. 2011-11-09 20:29:51 +04:00
Pavel Talanov f3d8b2c3b1 Added constructor calls. Working on method logic. 2011-11-09 19:12:10 +04:00
Pavel Talanov b514c180b4 Added string constant support. 2011-11-09 18:39:29 +04:00
Pavel Talanov 681100c4bc Added while/do while support 2011-11-09 18:18:29 +04:00