Hiroyuki Ikegami
a5b571f91c
fix formatting
2013-10-29 21:03:19 +04:00
Hiroyuki Ikegami
8c66f744b4
fix a bug which is converting from for(;;) to while()
2013-10-29 21:03:18 +04:00
Santeri Hiltunen
55c00b08e7
Made foreach work with nullable iterables
2013-10-29 21:03:17 +04:00
Santeri Hiltunen
475d02a80f
Convert Java lists to MutableLists
...
Java lists were given jet.List type, which is incorrect, since Java
lists are mutable and jet.List is immutable. Fixed test cases.
2013-10-29 21:03:16 +04:00
Aleksi Majander
c701da8506
Renamed myParamList to starParamList and fixed tests
2013-10-29 21:03:15 +04:00
Aleksi Majander
f68fe0bc38
Fixed an issue with Any? type declarations
2013-10-29 21:03:15 +04:00
hozumi
d03e1f5fcb
I fixed ArrayWithoutInitializationExpression class for object array and multi
...
dimension array. And I added 2 tests to check object Initialization.
2013-10-29 21:03:14 +04:00
Santeri Hiltunen
2fb770ab98
Added test case for custom Short class usage
2013-10-29 21:03:13 +04:00
Santeri Hiltunen
e1d7c9d42c
Fixes to handling of boxed types
...
Boxed types and primitive types should cooperate properly now with
primitive types in all basic cases. Added tests that verify this.
2013-10-29 21:03:12 +04:00
Natalia.Ukhorskaya
60360cf22f
Fix compilation
2013-10-29 21:03:11 +04:00
Santeri Hiltunen
b45b0e6c3a
Calls to Java's primitive class methods work.
...
Calls to Java's primitive classes that had the same name as the
corresponding primitive in Kotlin didn't work. Now calls like
Short.valueOf() is turned to java.lang.Short.valueOf() in Kotlin.
2013-10-29 21:03:10 +04:00
Aleksi Majander
1fe978e216
Fixed issue with final variables and overloading
2013-10-29 21:03:09 +04:00
Aleksi Majander
de21670851
Fixed the main function signature
2013-10-29 21:03:08 +04:00
Santeri Hiltunen
1874714d84
NonNull annotation on fields makes type non-null
2013-10-29 21:03:08 +04:00
Santeri Hiltunen
6576eb8ce3
Fixed compiler warnings
...
Removed unnecessary !! operations, ?. calls and "out" declarations.
2013-10-29 21:03:07 +04:00
Santeri Hiltunen
1cab2d1245
Drop imports that have Kotlin analogs
2013-10-29 21:03:06 +04:00
Santeri Hiltunen
453bb8b4f2
Changed CRLF line-endings to LF
2013-10-29 21:03:05 +04:00
Andrey Breslav
3abeffb8b8
Migrated to directory-based project format
2013-10-29 21:03:04 +04:00
Andrey Breslav
a591f7ace7
Run configuration published
2013-10-29 21:03:03 +04:00
Andrey Breslav
81923f76d9
The rest of compilations errors fixed
2013-10-29 21:03:02 +04:00
Andrey Breslav
281143fff8
JUnit added as a dependency
2013-10-29 21:03:01 +04:00
Andrey Breslav
81b1f18863
Compilation fixed
2013-10-29 21:03:00 +04:00
Andrey Breslav
743e17f657
Downloading IDEA SDK and using openapi.jar
2013-10-29 21:02:59 +04:00
Andrey Breslav
16506d482c
Using a fixed version of Kotlin compiler and runtime
2013-10-29 21:02:58 +04:00
Andrey Breslav
0d57134952
Using Kotlin compiler and runtime from a defined $KOTLINC_DIR$ path variable
2013-10-29 21:02:57 +04:00
Andrey Breslav
b828aaf733
Migrating to Kotlin M4: Most compilation errors outside AST fixed
2013-10-29 21:02:57 +04:00
Andrey Breslav
0f6533bf7b
Set up external dependencies
2013-10-29 21:02:56 +04:00
Dmitry Jemerov
bbc90cf577
remove empty elements from block
2013-10-29 21:02:55 +04:00
Dmitry Jemerov
9e2e23c757
modifiers are an enum
2013-10-29 21:02:54 +04:00
Dmitry Jemerov
e33f66f4b9
statically imported members don't need to be qualified
2013-10-29 21:02:53 +04:00
Dmitry Jemerov
1bf84a8187
don't generate !! for array access in assignment lvalue
2013-10-29 21:02:52 +04:00
Dmitry Jemerov
47293918fc
don't generate nullable type for val with not-null initializer
2013-10-29 21:02:51 +04:00
Dmitry Jemerov
58cf1d47be
bangbang in assignment if needed
2013-10-29 21:02:50 +04:00
Dmitry Jemerov
12603cdd81
casts to a primitive types are coercion methods instead
2013-10-29 21:02:50 +04:00
Dmitry Jemerov
152d214870
we don't need no DummyMethodCallExpression
2013-10-29 21:02:49 +04:00
Dmitry Jemerov
192cdd7028
less red-code-inducing handling of nullability with array accesses
2013-10-29 21:02:48 +04:00
Dmitry Jemerov
5be56e15ba
catch clause parameter is always not null
2013-10-29 21:02:47 +04:00
Dmitry Jemerov
d0b46704d3
merge some more expressions; correctly generate javaClass() call
2013-10-29 21:02:46 +04:00
Dmitry Jemerov
055cad793c
ConverterUtil to namespace-level functions in Converter.kt
2013-10-29 21:02:45 +04:00
Dmitry Jemerov
a59d15c090
merged some of the expressions in a single file; correct nullability for array access expression
2013-10-29 21:02:44 +04:00
Dmitry Jemerov
7cbff97c6e
filter whitespace nodes when converting list of elements
2013-10-29 21:02:43 +04:00
Dmitry Jemerov
1999c246f2
to kotlin
2013-10-29 21:02:43 +04:00
Dmitry Jemerov
2486e744d7
adapt to latest Kotlin
2013-10-29 21:02:42 +04:00
Dmitry Jemerov
c7113e143a
qualify access to static members
2013-10-29 21:02:41 +04:00
Dmitry Jemerov
21b280f413
convert .length on arrays to .size
2013-10-29 21:02:40 +04:00
Dmitry Jemerov
5664283a30
comments processing finished
2013-10-29 21:02:39 +04:00
Dmitry Jemerov
4bb3731272
comments support work in progress
2013-10-29 21:02:38 +04:00
Dmitry Jemerov
512603ce0c
to kotlin
2013-10-29 21:02:37 +04:00
Dmitry Jemerov
8bcc51f6c2
to kotlin
2013-10-29 21:02:36 +04:00
Dmitry Jemerov
0e2d0a4a5b
back to compilable and working state
2013-10-29 21:02:36 +04:00