Valentin Kipyatkov
7c2473a5ef
Java to Kotlin conversion: fixed a few bugs related to modifiers
...
#KT-4424 Fixed
2014-06-10 14:26:52 +04:00
Valentin Kipyatkov
6b11a5b3d9
Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings
2014-06-10 14:26:51 +04:00
Valentin Kipyatkov
66a83a4322
Java to Kotlin conversion: artificial constructors (when no primary detected) use var/val parameters
2014-06-03 17:29:01 +04:00
Valentin Kipyatkov
1be836a956
Java to Kotlin conversion: artificial constructor (when no primary detected) is generated private
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
ebcb04b73b
Java to Kotlin conversion: keep constructor access modifier
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
86d718de29
Java to Kotlin convertor: no empty class body
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
abfd2d68b9
Java to Kotlin convertor: generating of val/var constructor parameters when possible
2014-06-03 17:29:00 +04:00
Nikolay Krasko
b958e0d6b8
Allow empty blocks for classes and function literals
2014-05-16 17:10:02 +04:00
Nikolay Krasko
13dce4dd11
Run formatter in function context for converted expression and statements
2014-05-16 17:09:48 +04:00
Pavel V. Talanov
7dc7db04b3
Formatter: support "while on new line" option
2014-01-20 19:54:43 +04:00
Pavel V. Talanov
5caabc20f6
Formatter: support "else on new line" option
2014-01-20 19:54:42 +04:00
Pavel V. Talanov
e0b1170dc6
Formatter: left brace formatting for "for in ..."
2014-01-20 19:54:35 +04:00
Pavel V. Talanov
2aea631c1b
Formatter: left brace formatting for "do while"
2014-01-20 19:54:34 +04:00
Pavel V. Talanov
2d6f8aef4e
Formatter: introduce "Put left brace on new line option", support this option for "if/else" expressions
2014-01-20 19:54:25 +04:00
Evgeny Gerashchenko
61d346e93d
Reverted changes in test data to fix tests.
2013-12-23 18:28:10 +04:00
Evgeny Gerashchenko
f7d33d2297
Removed comments auto-generated by IDEA.
2013-12-23 15:58:36 +04:00
Pavel V. Talanov
1570a3792b
Converter tests:
...
Change test data files extension to "java"
2013-12-22 16:49:57 +04:00
Pavel Talanov
d69c61c972
Converter:
...
Preserve white spaces for top members (classes, package statements, comments)
2013-12-22 16:49:54 +04:00
Pavel Talanov
098a80a2af
Converter:
...
Member comments are preserved (not only doc comments)
2013-12-22 16:49:53 +04:00
Pavel Talanov
f08861c14a
Converter:
...
Wrong test data fixed
2013-12-22 16:49:52 +04:00
Pavel V. Talanov
30c016fa2a
Converter tests:
...
Add tests for preserving white spaces between class members
2013-12-22 16:49:49 +04:00
Pavel V. Talanov
7f88de1dba
Converter tests:
...
White spaces in member lists are preserved
2013-12-22 16:49:47 +04:00
Pavel Talanov
8577d3ca55
Converter:
...
Preserve white spaces inside code blocks
Introduce WhiteSpaceSeparatedElementList which keeps track of whitespaces
Introduce StatementList
Change old test data accordingly
2013-12-22 16:49:43 +04:00
Pavel V. Talanov
741e031ff1
Converter:
...
Use formatter in converter tests
Reformat test data
2013-12-22 16:46:51 +04:00
Pavel V. Talanov
ea6b751645
Converter:
...
Place function type parameters before function name
2013-12-22 16:46:49 +04:00
Pavel V. Talanov
df74352ea3
Converter:
...
Fix converting import list
Add tests for imports problem
Add 'element' test type
2013-12-22 16:46:46 +04:00
Pavel V. Talanov
38f5361021
Converter:
...
Do not generate redundant visibility modifier for overrides
2013-12-22 15:53:22 +04:00
Pavel V. Talanov
d98d8cfa7f
Converter:
...
Functions are final by default in plugin mode
2013-12-22 15:53:21 +04:00
Pavel V. Talanov
bf4e27b152
Converter:
...
Classes are final by default in plugin mode
2013-12-22 15:53:19 +04:00
Pavel V. Talanov
354daa91bb
Converter:
...
Remove outdated compatibility import mode
2013-12-22 15:53:18 +04:00
Pavel V. Talanov
f9586581a9
Converter:
...
Fix assert statement
2013-12-22 15:53:15 +04:00
Pavel V. Talanov
21bc2887d2
Converter:
...
Omit Unit return type
Refactor handling of Unit type: extract separate object UnitType
2013-12-22 15:53:14 +04:00
Pavel V. Talanov
82b19499e3
Converter tests:
...
Use generated tests approach in converter tests
Introduce two seperate generated test cases of each of configurations, all tests are generated in both test cases
Test data for plugin configuration has extension "ide.kt", for basic configuration "*.kt"
Test data file is used to determine type of the test (file/class/expression/...) instead of directory, all test data is moved accordingly
Add abstract base classes for generated tests
Rename test folder "file" to "misc" (for the lack of imagination)
2013-12-22 15:53:13 +04:00
Pavel V. Talanov
e19373cac7
Hack that adds more convenient defaults for J2K, minimal test for these defaults
2013-10-29 21:03:37 +04:00
Pavel V. Talanov
a649eb52cf
J2K: Do not specify type of for loop parameter
2013-10-29 21:03:36 +04:00
Pavel V. Talanov
375951798e
Prepare repository for merge into master
2013-10-29 21:03:29 +04:00
Alexey Sedunov
1cb551385a
Do not generate nullable types when converting "instanceof" to "is"
2013-10-21 17:09:19 +04:00
Alexey Sedunov
054588bd3b
Fix conversion of Java class literals
2013-10-21 17:09:18 +04:00
Andrey Ponomarev
e4a172946b
KT-3368 J2K: converted enums contain name() method
...
#KT-3368 Fixed
2013-02-25 16:15:53 +01:00
Andrey Ponomarev
34c227b8ed
J2K: enum constants are non-nullable
2013-02-21 14:24:26 +01:00
Andrey Ponomarev
e4df4059d1
J2K: Detect @NotNull references in call chains
2013-02-21 14:24:25 +01:00
Andrey Ponomarev
514c7b553f
J2K: Detect @NotNull fields
2013-02-21 14:24:25 +01:00
Evgeny Gerashchenko
789c8608e5
Replaced sure() invocation with '!!' operator in Java to Kotlin converter.
2012-09-17 18:00:20 +04:00
Svetlana Isakova
8b45b26785
reordered modifiers order: visibility first in j2k converter
2012-03-30 14:37:15 +04:00
Svetlana Isakova
83426659f1
j2k tests fixed
2012-03-30 14:11:44 +04:00
Svetlana Isakova
167a9c444a
Added 'public' annotation and specified return types for library functions
2012-03-30 13:38:35 +04:00
James Strachan
eb3aac9acb
refactored std.* package to be kotlin.*. Due to KT-1381 I had to move the functions from kotlin.test into the stdlib for now (I made them not depend on JUnit for now)
2012-03-03 12:11:06 +00:00
Alex Tkachman
53bba59a4f
dbl -> toDouble
2012-02-22 13:14:41 +02:00
Andrey Breslav
ee3e7bb80f
Fixing j2K tests
2012-02-20 21:58:33 +04:00
Andrey Breslav
bff62484b1
KT-1306123.lng or 123.sht is not good name
2012-02-20 21:42:13 +04:00