Nikolay Krasko
2946c1d6a8
KT-7271 Accessing an extension property of Char.Companion leads to ClassNotFoundException in runtime
...
#KT-7271 Fixed
2015-04-07 15:59:05 +03:00
Ilya Gorbunov
f2d865e836
Provide constrainOnce extension method for the Sequence.
...
Sequence created from the generator function without an initial value can be iterated only once.
The same is for BufferedReader.lines sequence.
2015-04-07 15:34:59 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +03:00
Stanislav Erokhin
b703f59e04
Migrate kotlin sources, maven projects and stdlib 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
Dmitry Jemerov
5a0c98ca81
fix compilation now that 'break' inside 'when' is not allowed
2015-04-05 00:33:14 +03:00
Michael Nedzelsky
61726fdcb7
JS: merge KotlinJavascriptSerializer into KotlinJavascriptSerializationUtil
2015-04-03 05:36:21 +03:00
Michael Nedzelsky
1c7e1ddf26
JS: remove LibrarySourcesConfigWithCaching, introduce LibrarySourceConfig.Builder
2015-04-03 05:36:18 +03:00
Michael Nedzelsky
06aef3164c
JS: use metadata in jps build process
2015-04-03 05:36:10 +03:00
Michael Nedzelsky
5a73bd19c5
JS: move processing metaInfo to TranslationResult
2015-04-03 05:36:02 +03:00
Michael Nedzelsky
dbe59190ed
JS: add writeMetadataToString, serializeToString
2015-04-03 05:35:59 +03:00
Michael Nedzelsky
0951d69bdc
JS: add metaInfo attribute to Config
2015-04-03 05:35:56 +03:00
Ilya Gorbunov
cac058d5a3
Fix endsWith in JS always ignored character case, regardless of the ignoreCase parameter value.
...
startsWith, endsWith again use native implementation when possible.
2015-04-01 23:10:14 +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
95c2a4fb29
Fix split method usage: split temporary replaced with splitBy.
2015-04-01 18:17:06 +03:00
Ilya Gorbunov
ac4b207413
Add isEmpty, isBlank methods and their nullable and negating couterparts.
2015-04-01 15:40:17 +03:00
Denis Zharkov
a4018d9eae
Run "Add 'init' keyword in whole project" quickfix
2015-03-31 20:20:23 +03:00
Ilya Gorbunov
b3165ac771
Rename split method to splitBy and revive old split implementation interpreting parameter as regex to provide the migration path.
2015-03-31 02:24:50 +03:00
Ilya Gorbunov
b10d869cd7
indexOf*, split, startsWith, endsWith: JS implementation
2015-03-31 02:24:35 +03:00
Ilya Gorbunov
d724ce3f7e
Add code generation for asList methods in js.libraries.
2015-03-31 02:24:20 +03:00
Alexander Udalov
32c3bb8c7f
Extract module 'deserialization' out of 'serialization'
...
'deserialization' stays in core because it's needed both in compiler and
reflection, but 'serialization' is used only in the compiler
2015-03-30 19:44:17 +03:00
Alexander Udalov
d09e0e73fa
Rename NameSerializationUtil, move serialization-related code there
2015-03-30 17:22:07 +03:00
Alexander Udalov
b57e15f3a4
Move utilities from NameSerializationUtil to meaningful places
2015-03-30 17:22:06 +03:00
Pavel V. Talanov
b73bd697e6
Rename JetCoreEnvironment -> KotlinCoreEnvironemnt
2015-03-30 15:11:58 +03:00
Pavel V. Talanov
9d618ca767
Replace OBJECT$ usages in code and test data
2015-03-25 18:28:01 +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
Ilya Gorbunov
5b2a5c78ca
Fix js-stdlib compilation and tests.
2015-03-25 03:25:27 +03:00
Michael Nedzelsky
842eaa86a4
merge serialization.js module into js.serializer
2015-03-24 15:13:45 +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
5ff5cea17a
JS: report error when js() produces empty AST
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
eb4f6b8a1e
JS: generate shorter tag for inline functions
2015-03-23 16:43:49 +03:00
Alexey Tsvetkov
8be3628074
JS: removed comma expression decomposition from InlineMetadata
...
There are used to be two inline tags (corresponding to start, end of inline function).
An expression like "startTag, function, endTag" was parsed into comma expression, then decomposed.
Now, it's just one tag at start, and parser can read function, then stop.
Thus, there is no need to decompose comma expressions.
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
c7e8f52faf
JS: use one tag for inlining
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
e83b253b3e
JS: renamed JsParser->JsAstMapper
2015-03-23 16:43:48 +03:00
Alexey Tsvetkov
24f2121f9b
JS: report error from backend, when inline function is called recursively
2015-03-23 16:43:48 +03:00
Zalim Bashorov
d569ea5974
JS frontend: added diagnostic about secondary constructors not supported yet.
2015-03-23 13:52:56 +03:00
Zalim Bashorov
aaa7f6d5e4
JS frontend: added diagnostic about non-toplevel classifiers are unsupported yet.
2015-03-20 21:23:31 +03:00
Zalim Bashorov
1bf7610751
Minor in JS frontend: fix compiler warnings.
2015-03-20 21:23:31 +03:00
Zalim Bashorov
68619be023
Minor in JS frontend: extract native annotation checkers to separate file.
2015-03-20 21:23:31 +03:00
Zalim Bashorov
8673f95dc5
AnnotationChecker -> DeclarationChecker
2015-03-20 21:23:30 +03:00
Denis Zharkov
eefea26d54
Recovery for initializer if no LBRACE
...
- If no LBRACE after 'init' keyword parse initializer without body
- Made getBody() nullable, appropriate checks added
2015-03-18 19:59:25 +03:00
Michael Nedzelsky
7ebfd37c33
JS backend: support for reading metadata
2015-03-18 09:38:55 +03:00
Michael Nedzelsky
711501af56
add new module js.serializer
2015-03-18 09:38:51 +03:00
Michael Nedzelsky
77e9ab8ad7
JS: FunctionReader: remove unnecessary check for libraries
2015-03-18 09:38:40 +03:00
Michael Nedzelsky
69417903e2
kotlin_lib_ecma5.js: add metadata function
2015-03-18 09:38:38 +03:00
Zalim Bashorov
0ddec2d9b5
Minor in JS backend: throw IllegalStateException instead of UnsupportedOperationException inside CallCase
2015-03-18 08:55:56 +03:00