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
Ilya Gorbunov
1566ea83c7
Rename conflicting repeat function with the same behavior from js tests.
2015-05-26 23:23:39 +03:00
Alexander Udalov
49004a8b8e
Conform functions to extension functions and vice versa
...
#KT-5989 Fixed
2015-05-26 15:04:56 +03:00
Alexey Tsvetkov
fc1a1f742b
JS test: added multi-module inline tests
2015-05-25 20:20:25 +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
Michael Nedzelsky
d629271510
JS: make -meta-info cli option boolean
2015-05-21 02:30:54 +03:00
Alexander Udalov
bc2398cf40
JS: disable test on inheritance from function types
...
This is not yet fully supported but this test is an obstacle for the function
type refactoring
#KT-7692 Open
2015-05-19 18:46:59 +03:00
Mikhail Glukhikh
fdf0ea5546
Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries
2015-05-18 16:08:16 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Sergey Mashkov
33c1d5d2cf
JS fix tests failed due to api change
2015-05-14 09:16:50 +03:00
Valentin Kipyatkov
dc7f81a904
Code corrections after code review
2015-05-14 01:10:14 +03:00
Alexey Tsvetkov
37dfa58cd3
JS: expand calls, generated to curry reified is checks
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
818b197169
JS: support reified usage in extension functions
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
79ab47d374
JS: support reified type references in closures
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
85dc7a1ac4
JS: always translate reified type parameters
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
2f786efebf
JS: support is-check on reified parameter
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
2c99484066
Minor in JS: use toTypedArray in JS tests
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
8cdff2439b
JS: added reified is-check test cases
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
0a3ed7f12e
JS: small fixes after conversion
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
f0c2aa9eb2
JS: converted CallArgumentTranslator to Kotlin
2015-05-13 12:15:29 +03:00
Alexey Tsvetkov
cdfd88cc2f
JS: changed file extension of CallArgumentTranslator.java -> .kt
2015-05-13 12:15:29 +03:00
Ilya Gorbunov
6c9ca39286
Implement CharSequence.isEmpty method in stdlib.js. Remove corresponding intrinsic.
2015-05-09 01:11:22 +03:00
Ilya Gorbunov
43dd23bd4b
Remove some conflicting declarations from test, convert code to new Regex API
2015-05-09 01:11:10 +03:00
Natalia Ukhorskaya
9108d87a57
Add warning for division by zero:
...
#KT-5529 fixed
2015-05-07 15:41:37 +03:00
Alexey Tsvetkov
68603d188b
JS: ExpressionDecomposer should always visit JsInvocation qualifier
2015-05-06 18:19:21 +03:00
Alexey Tsvetkov
8db104ef36
JS: decomposition should preserve 'this' context with invocations
...
#KT-7502 fixed
2015-05-06 18:19:21 +03:00
Dmitry Jemerov
702188bbe2
regenerate JS reserved words test
2015-04-29 16:50:22 +02:00
Dmitry Jemerov
cce1be3892
rename JetClass.isTrait() to isInterface(); rename ClassKind.TRAIT to INTERACE
2015-04-29 16:50:19 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Pavel V. Talanov
ac2cb9af74
Remove some usages of KotlinBuiltIns.getInstance()
...
Introduce DeclarationDescriptor.builtIns extension to get builtins where descriptors are available
Introduce various utilities in KotlinBuiltIns to check for primitive types and get fq names of builtins
2015-04-28 12:49:34 +03:00