Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Alexey Tsvetkov
012bc8f1db
Revert "Simple workaround for problem described in KT-6437"
...
This reverts commit 34d408eb7b .
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
764c506aaa
JS: do not generate break for top level return during inline
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
900147385d
JS: do not alias 'this' literal in a receiver position
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
6b09b4c2b6
JS: do not create variable for result, if inline call is only return subexpression
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
ea41bc4231
JS: do not create variable for result, if inline function has one top level return
2015-04-24 18:19:34 +03:00
Alexey Tsvetkov
c9b24510bb
JS: do not create var for result if statement is 'someVar = inlineCall()'
2015-04-24 18:19:33 +03:00
Alexey Tsvetkov
fd09d4d837
Minor in JS: moved test for additional vars during inline to separate directory
2015-04-24 18:19:33 +03:00
Zalim Bashorov
6e60a31b73
JS backend: don't translate labels on expression
...
#KT-7487 Fixed
2015-04-22 12:48:20 +03:00
Alexey Tsvetkov
ff5090136c
JS: do not extract expressions, when inline call can be expression
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
bf5300a849
JS: fixed tryCatchFinally test because of KT-7328 bug
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
78a6b95f5a
JS: added test case, where inline call in "for" is used
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
27a1861263
JS: lambda constructor cannot have sideEffect
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
97a1a13235
JS: inline componentN functions
...
#KT-7294 fixed
2015-04-16 21:17:12 +03:00
Alexey Tsvetkov
a9d38e8d22
JS: decomposition of vars
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
e80059e4a2
JS: decomposition of "while" and "do while"
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
71ea487828
JS: decomposition of "if"
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
c0111d6e33
JS: decomposition of binary operator
...
#KT-6437 fixed
#KT-7359 fixed
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
fd844ad6e3
JS: decomposition of ternary operator
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
3782b9d382
JS: decomposition of array access
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
8b68f6d9ab
JS: decomposition of array literal
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
92942fd1c5
JS: decomposition of invocation/"new"
2015-04-16 21:17:11 +03:00
Alexey Tsvetkov
05c44db80f
JS: inline all calls in a statement in one pass
2015-04-16 21:17:09 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +03:00
Stanislav Erokhin
b152211096
Added init keyword to testdata
2015-04-07 13:08:51 +03:00
Mikhail Glukhikh
cdc2d0f542
Tests for when / break / continue fixed
2015-04-06 16:08:17 +03:00
Ilya Gorbunov
315badd5d1
Restore native js functions: startsWith, endsWith, contains.
...
startsWith and endsWith implementation taken from MDN.
2015-04-01 23:05:52 +03:00
Pavel V. Talanov
a986d913c3
Remove traces of class object constraints feature from parser, frontend, tests and psi
2015-04-01 20:09:34 +03:00
Ilya Gorbunov
b930f71b79
Fix split method usage in JS: split replaced with splitWithRegex or splitBy.
2015-04-01 18:17:08 +03:00
Ilya Gorbunov
b10d869cd7
indexOf*, split, startsWith, endsWith: JS implementation
2015-03-31 02:24:35 +03:00
Pavel V. Talanov
ed218c473a
Get rid of 'class object' usages in code and builtins
...
Replace some comments and library usages as well
2015-03-25 18:28:00 +03:00
Alexey Tsvetkov
03f0c6ede7
JS: added test for callable reference as stdlib inline function argument
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
1557111277
JS: fix issues with js() usage in inline functions
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
c7e8f52faf
JS: use one tag for inlining
2015-03-23 16:43:48 +03:00
Michael Nedzelsky
69417903e2
kotlin_lib_ecma5.js: add metadata function
2015-03-18 09:38:38 +03:00
Zalim Bashorov
7d3094a0f1
JS backend: use FqNameUnsafe when generate delegateName to avoid problems with special names.
...
#EA-64029 Fixed
2015-03-17 19:00:50 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Stanislav Erokhin
3b92cab9e0
Changed containing declaration for PropertyDeclarationInnerScope
2015-03-12 17:11:43 +03:00
Pavel V. Talanov
2987e72d29
Do not report redeclaration when outer class and default object's members clash
...
Previously we prohibited classes and properties with the same name (now it's unnecessary)
Add test for backends that they support qualified (by default object name) member references inside class body
2015-03-11 21:06:05 +03:00
Pavel V. Talanov
9a844d2feb
Minor: replace some missed mentions of 'class object' with 'default object'
2015-03-10 18:07:54 +03:00
Zalim Bashorov
f49e4ca3e9
JS backend: fixed accessing to native enum entries.
2015-03-10 14:30:45 +03:00
Alexey Tsvetkov
53dfd77d31
JS: added inline stdlib cases
2015-03-06 21:36:19 +03:00
Alexey Tsvetkov
083b506fe1
JS: test metadata generation
2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
ded46843c2
JS: generate metadata for public inline functions
2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
25f6a4aa0a
JS: added spread operator inline test case
2015-03-06 21:36:18 +03:00
Alexey Tsvetkov
ea0253770b
JS: use generation for some tests
2015-03-06 21:36:18 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Evgeny Gerashchenko
af7eba64f7
Disallow PropertyMetadataImpl in conventions for delegated properties
2015-03-05 18:42:17 +03:00
Nikolay Krasko
30a50746b5
Intrinsic default objects implementation: tests
2015-03-05 01:30:38 +03:00
Pavel V. Talanov
1174010f33
JS backend: support named class objects
...
Temporary solution until named objects in classes are supported in js backend
2015-02-16 15:38:47 +03:00