Denis Zharkov
eb7114bd53
Add 'constructor' keyword in whole project where needed
2015-06-12 09:55:15 +03:00
Denis Zharkov
200dee2761
Replace deprecated annotations in whole project
2015-06-12 09:23:32 +03:00
Denis Zharkov
c9f79c2d05
Adjust testData: get rid of obsolete annotations
2015-06-12 09:23:31 +03:00
Michael Nedzelsky
999c83240c
JS: error message (not exception) for incompatible abi version during compilation
2015-06-10 05:37:57 +03:00
Ilya Gorbunov
705c9089f0
Provide replacement for methods deprecated in favor of SAM-constructors.
...
Provide replacement for isNotEmpty on nullable receiver.
JS: Provide SAM-like constructor for Runnable.
2015-06-04 16:32:19 +03:00
Zalim Bashorov
9d32f5e8ed
Minor in JS backend tests: use checkFooBoxIsOk instead of fooBoxIsValue
2015-06-03 23:09:17 +03:00
Zalim Bashorov
92457543bc
JS backend: fix equality check for nullable types
...
* Generate simple check when compare with `null` literal.
* Use Kotlin.equals if type of receiver or argument is nullable.
* Don't call equals method if any of receiver or argument is null (at runtime, not only literal). For more information see KT-4356.
#KT-7530 fixed
#KT-7916 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
6aaccae6a9
JS backend: compare enum entries strictly
...
#KT-7840 fixed
2015-06-03 23:09:16 +03:00
Zalim Bashorov
4f0a858e93
JS backend: fix tests after move testTrue and testFalse to common place
2015-06-03 23:09:16 +03:00
Zalim Bashorov
430a3c121d
Minor in JS backend: move testFalse and testTrue to common place
2015-06-03 23:09:16 +03:00
Zalim Bashorov
ca4ce48801
JS backend: fix compiler crash on for with empty body
2015-06-03 23:09:15 +03:00
Zalim Bashorov
f90df7aa35
JS backend: fix compiler crash on empty then if block
...
#EA-68941 fixed
2015-06-03 23:09:15 +03:00
Zalim Bashorov
779a0373c7
JS backend: generate better code for secondary constructor calls -- don't generate undefined when it possible
2015-06-03 23:09:15 +03:00
Zalim Bashorov
79b5652ce6
JS backend: added test which check that name of classes not mangled when we have a function with the same name in non-public API
2015-06-03 23:09:15 +03:00
Zalim Bashorov
33fb3fb6e4
JS backend: support secondary constructors in native classes
2015-06-03 23:09:15 +03:00
Valentin Kipyatkov
8fd6a64be9
Refactored methods for val/var in PSI
2015-06-01 18:23:34 +03:00
Zalim Bashorov
f1d37572c8
JS backend: fix missed variable declarations for tmps in class primary/default constructor
...
#KT-7864 Fixed
2015-05-29 20:09:46 +03:00
Valentin Kipyatkov
eef0e8e447
JetBlockExpression.getStatements() returns List<JetExpression> instead of List<JetElement>
2015-05-29 14:22:56 +03:00
Zalim Bashorov
68eca8bc00
JS backend: add the support secondary constructors
2015-05-28 11:06:06 +03:00
Zalim Bashorov
016534b487
Minor: change package in astUtils.kt: ast -> jsAstUtils
2015-05-28 11:06:05 +03:00
Zalim Bashorov
e11d61d68a
JS backend: move all class creation logic from FileDeclaration to ClassTranslator
2015-05-28 11:06:04 +03:00
Zalim Bashorov
6e7be78b98
Minor improvments in ClassTranslator after conversion
2015-05-28 11:06:03 +03:00
Zalim Bashorov
c589026a47
Convert ClassTranslator.java to Kotlin
2015-05-28 11:06:02 +03:00
Zalim Bashorov
b61c1376a2
ClassTranslator.java -> ClassTranslator.kt
2015-05-28 11:06:02 +03:00
Zalim Bashorov
ef5ee5100a
JS backend: make CallTranslator more comfortable to use from java
2015-05-28 10:38:30 +03:00
Zalim Bashorov
3fe363e72b
Minor: split test to access to companion and to nested object
2015-05-28 10:25:11 +03:00
Zalim Bashorov
dc1b91eacd
JS: prepare tests for secondary constructors
2015-05-28 10:24:48 +03:00
Zalim Bashorov
72c2648fc8
JS frontend: remove diagnostics about the secondary constructors are not supported
2015-05-28 10:24:47 +03:00
Ilya Gorbunov
ae60f7a32f
Prettify kdocs and exception messages in the generated code.
2015-05-27 22:16:15 +03:00
Dmitry Jemerov
1188e57597
rename @overloads annotation to @jvmOverloads
2015-05-27 12:23:08 +02:00
Ilya Gorbunov
1566ea83c7
Rename conflicting repeat function with the same behavior from js tests.
2015-05-26 23:23:39 +03:00
Alexander Udalov
48b18f18d3
Restore explicit imports of Kotlin function types in Java
...
This is a follow-up to 738a84e259 and
d4965a4f3e . Optimize imports in all files
affected in those commits, drop temporary _.kt
2015-05-26 18:46:27 +03:00
Alexander Udalov
49004a8b8e
Conform functions to extension functions and vice versa
...
#KT-5989 Fixed
2015-05-26 15:04:56 +03:00
Alexander Udalov
4141e0a8df
Introduce fictitious numbered Function class descriptors
2015-05-26 15:04:54 +03:00
Alexander Udalov
135ee92966
Minor, don't pass constants as parameters
2015-05-26 15:04:52 +03:00
Alexander Udalov
738a84e259
Temporary hack to migrate functions to package kotlin.jvm.functions
...
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
2015-05-26 15:04:34 +03:00
Michael Nedzelsky
7a01ba7d7a
JS: add jsProtoBufUtil
2015-05-26 05:04:04 +03:00
Michael Nedzelsky
06af6bbd82
JS: KotlinJavascriptSerializationUtil, KotlinJavascriptSerializedResourcePaths: add some useful functions
2015-05-26 05:03:14 +03:00
Ilya Gorbunov
1cf4a407d1
JS: Provide MIN_VALUE and MAX_VALUE member constants for Double and Float companion objects.
...
JVM: Make MIN_VALUE and MAX_VALUE not an extension but member constant properties of Double and Float companion objects.
2015-05-26 00:26:19 +03:00
Alexey Tsvetkov
bd934bc3c4
Minor in JS: fixed typo in file name (abstarct->abstract)
2015-05-25 20:20:26 +03:00
Alexey Tsvetkov
fc1a1f742b
JS test: added multi-module inline tests
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
115798f584
JS test: check directives in MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
f214c4eac7
JS test: use common dependencies.txt for MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
b2238c0ebf
JS: search inline function in .js file corresponding to module's
...
.meta.js
2015-05-25 20:20:25 +03:00
Sergey Mashkov
fe26bd22f0
JS stubs: add URL specification
2015-05-25 14:55:47 +03:00
Pavel V. Talanov
e4c242e66b
Remove direct usages of ModuleDescriptor#getPackageFragmentProvider()
2015-05-25 13:00:16 +03:00
Sergey Mashkov
07a3233569
JS stubs: add CSSOM view specification and GEOMETRY spec
2015-05-25 12:36:42 +03:00
Ilya Gorbunov
4fd1b46e91
Refactor JS tests: unified package name, test JS specific map implementations only in JS.
...
Add required files to build StdLibTestToJSTest.
Remove tests StdLibMapJsTest and StdLibSetJsTest because they are tested elsewhere.
2015-05-24 05:07:01 +03:00
Ilya Gorbunov
4d3855a8fb
Implement missing members for sets, maps and entry of map.
...
hashCode and toString for PrimitiveHashMap, hashCode for PrimitiveHashSet.
2015-05-24 05:06:24 +03:00
Ilya Gorbunov
df6d4dc73f
Implement some of missing AbstractList methods.
...
Make ListIterator to implement kotlin.ListIterator interface.
Add TODOs and UnsupportedOperationExceptions for members left to implement.
2015-05-24 05:04:06 +03:00