Commit Graph

7744 Commits

Author SHA1 Message Date
Pavel V. Talanov 5694a3644c Remove functionality delegated to LiteralFunctionTranslator from FunctionTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:03 +04:00
Pavel V. Talanov 02622595b5 Inner*Translator used by LiteralFunctionTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:02 +04:00
Pavel V. Talanov 86b85177b7 Using new ast instead of utilities.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:43:01 +04:00
Pavel V. Talanov d6a6bd7cac New aliasing context usages.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:53 +04:00
Pavel V. Talanov 4b69fa1014 Refactor AliasingContext.
Introduce TraceableThisAliasProvider.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:51 +04:00
Pavel V. Talanov a4564aad80 Name to literal utility in TranslationContext.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:48 +04:00
Pavel V. Talanov 751cf0233a Refactor constructors in TranslationContext.java.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:47 +04:00
Pavel V. Talanov ec905d3892 Remove hack introduced for in IteratorForTranslator. 2012-08-14 12:38:46 +04:00
Pavel V. Talanov f140f611ed Use FileUtil to write files in K2JSTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:45 +04:00
Pavel V. Talanov 8e1cfd38d4 Introduce literal function translator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:44 +04:00
Pavel V. Talanov a1a3c5cfe5 Use Namer.CALLEE_NAME in ClassInitializerTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:38:00 +04:00
Pavel V. Talanov 22e4c6dd4b Label generator utility.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:59 +04:00
Pavel V. Talanov c66df38da5 Rename WhenTranslator.translateWhenExpression -> WhenTranslator#translate.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:58 +04:00
Pavel V. Talanov 14a9986ddc Remove unnecessary code in PatternTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:57 +04:00
Pavel V. Talanov 8939dd1a6e Use notNullConditionalTestExpression utility in UnaryOperationTranslator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-14 12:37:56 +04:00
Natalia.Ukhorskaya 98ed261eb3 Fix android build 2012-08-14 12:25:06 +04:00
Alex Tkachman 71208de565 revert unsuccessful attempt to fix android build 2012-08-14 09:26:27 +03:00
Alex Tkachman 6f4e84287e fix broken compilation 2012-08-14 09:11:27 +03:00
Alex Tkachman 016f528334 some codegen tests use main instead of box 2012-08-14 07:09:13 +03:00
Alex Tkachman 5947759684 proper compilation of enums 2012-08-13 22:37:27 +03:00
Alexander Udalov e5820722ec fix failing CompileKotlinAgainstKotlinTest 2012-08-13 17:08:21 +04:00
Andrey Breslav 39f96b80fd Clarifying renames 2012-08-13 13:29:44 +04:00
Andrey Breslav b76bdd09ff Formatting + redundant modifiers removed 2012-08-13 11:57:10 +04:00
Andrey Breslav 3b3f1aa016 All the special types are now handled by SpecialTypes class
- this concept used to be called "known types" before
2012-08-13 11:56:26 +04:00
Andrey Breslav f7321a40e0 Format method with multiline parameter list like this:
int foo(
        Bar buzz
) {
    // ...
}
2012-08-10 20:08:16 +04:00
Alexander Udalov dcf2982288 copy-paste bug fix in test 2012-08-10 17:24:44 +04:00
Alexander Udalov 9350369fab Fixed codegen for single-branch if
#KT-2597 Fixed
 #KT-2598 Fixed
2012-08-10 14:39:34 +04:00
Alexander Udalov 4bc1b2636a StackValue.pop() 2012-08-10 14:39:33 +04:00
Pavel V. Talanov 7a22ad099a Fix formatting in some of test data files.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-10 14:06:23 +04:00
Pavel V. Talanov 12d9b25189 Inline useless temp var in ForTranslator.
Also fix formatting.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
2012-08-10 14:02:34 +04:00
Alex Tkachman b497fcc167 removing hack where ClosureAnnotator deals with range class objects 2012-08-10 09:40:59 +03:00
Pavel V. Talanov 25234254fe Hack to make tests path in IteratorForTranslator.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:26:12 +04:00
Pavel V. Talanov 6300220983 Changes to kotlin lib js.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:25:18 +04:00
Pavel V. Talanov 4c316011db Optimize temporary variable declarations in dynamic context, also introduce some hacky apis.
Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-09 19:23:19 +04:00
Evgeny Gerashchenko c8fc299f43 Extracted parts of StandardLibraryReferenceResolver.findCurrentDescriptor() into methods. 2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko 592f01ed74 Made StandardLibraryReferenceResolver aware of class objects in built-ins. 2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko b359592fd1 Optimized imports 2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko 5d8de8fbd2 KT-2596 Can't use iterator in for-loop
#KT-2596 fixed
2012-08-09 19:14:31 +04:00
Evgeny Gerashchenko 1b27d0db60 Added toString() method to all ranges. 2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko d7b8ea1817 Made IntRange.toString() aware of empty ranges. 2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko 1bc99ef19a KT-2579 Rename Range.minus() to reversed and make it extension
#KT-2579 fixed
2012-08-09 19:14:14 +04:00
Evgeny Gerashchenko 577d83605f Made test for KT-821 actually testing creation of ranges using constructors, but not "minus" operator. 2012-08-09 19:14:14 +04:00
Andrey Breslav e087d50a7f printlnWithNoIndent() added 2012-08-09 17:35:21 +04:00
Andrey Breslav 8dd9225411 Object descriptors for enum entries created properly 2012-08-09 17:35:21 +04:00
Andrey Breslav 56414e90b3 Properly merging class scopes 2012-08-09 17:35:21 +04:00
Andrey Breslav 2386757e7c Serializing inner objects in NamespaceComparator
+ duplicating test removed
2012-08-09 17:35:21 +04:00
Natalia.Ukhorskaya 1506955188 Android module: update excluded files 2012-08-09 15:49:15 +04:00
Alex Tkachman 7f80deeb9a test for obsolete KT-2246 2012-08-09 14:27:33 +03:00
Evgeny Gerashchenko 1656f38f6f Minor: better formatting in code generator. 2012-08-09 15:13:42 +04:00
Evgeny Gerashchenko 8084876fed Using empty ranges in downTo generator. 2012-08-09 15:13:42 +04:00