Erokhin Stanislav
48cd8f4df4
JS backend: Fix override val property in ecma5.
2013-08-12 21:48:18 +04:00
Mikhael Bogdanov
c9215ed8a5
KT-2784 VerifyError when passing a value to a class object's super type constructor
...
#KT-2784 Fixed
2013-08-12 18:58:09 +04:00
Zalim Bashorov
b46e0361c5
Use the system path separator character in compiler messages.
...
Fix for CliTest.
2013-08-12 13:37:44 +04:00
Andrey Breslav
be8045a392
Adding info to an exception
2013-08-12 13:24:20 +04:00
Andrey Breslav
3617e418c2
Fixing guava 14 library and sources
2013-08-09 17:32:24 +04:00
Nikolay Krasko
a18875aba4
Fix local file uri for windows
2013-08-09 15:43:52 +04:00
Erokhin Stanislav
9d1ae5e3d9
JS backend: Add class object support.
2013-08-09 14:59:09 +04:00
develar
e786e62fd7
JS backend: fixed variable capturing in extension functions.
...
Fixed ClosureTest.testWrappedVariableInExtensionFun IteratorsTest.foldReducesTheFirstNElements and IteratorsTest.takeExtractsTheFirstNElements. All tests passed.
(cherry picked from commit f8f1895)
2013-08-09 14:29:55 +04:00
develar
786652940d
JS backend: use javascript Object as base class for object by default (when there are not any parents).
...
It's workaround for compatibility with Google Chrome Extension API because sometimes they calls Object.prototype methods.
(cherry picked from commit 9959a1e)
2013-08-09 14:29:55 +04:00
develar
bc4e0e212a
JS backend: added generation @lends JsDoc annotation.
...
For more information about @lends see https://code.google.com/p/jsdoc-toolkit/wiki/TagLends
(cherry picked from commit 1269911)
2013-08-09 14:29:55 +04:00
develar
a53b9e99ad
JS backend: removed some useless util methods.
2013-08-09 14:29:55 +04:00
Zalim Bashorov
df11dbe7a5
JS backend: added tests check the closure fields when use it from nested functions in method.
2013-08-09 14:29:55 +04:00
develar
b9396ff7e8
JS backend: detect outer class if used in child local fun.
...
Fix closure fields when use it from nested functions in method.
(cherry picked from commit 20eea36)
2013-08-09 14:29:55 +04:00
develar
632d878877
JS backend: use native function for parseInt.
...
Add radix parameter to parseInt.
(cherry picked from commit b6be98d)
2013-08-09 14:29:55 +04:00
develar
33d576c31f
JS backend: format builder.kt according to code style.
...
(cherry picked from commit 7c2a2cd)
2013-08-09 14:29:54 +04:00
develar
222c05dd00
JS backend: made Json::get and Json::set intrinsic.
...
(cherry picked from commit b1692e1)
2013-08-09 14:29:54 +04:00
develar
8867c7a33f
JS backend: fixed Map set/get -- should work with jet Map/MutableMap.
...
Added to PatternBuilder the ability to check that method has been overridden.
2013-08-09 14:29:54 +04:00
develar
421c896416
JS backend: removed unused extension function List::equals.
2013-08-09 14:29:54 +04:00
develar
3e2d030e5d
JS backend: removed parameters from PatternBuilder#receiverExists.
2013-08-09 14:29:54 +04:00
Zalim Bashorov
185ec381e3
JS backend: added tests that checks constructing ArrayList with capacity.
2013-08-09 14:29:54 +04:00
develar
1ddf60ef0a
JS backend: don't search function intrinsic twice.
...
Use thashmap instead of hasmap -- less memory usage.
(cherry picked from commit e617f8f)
2013-08-09 14:29:53 +04:00
develar
4e07c60541
JS backend: fixed AbstractCollection#equals.
...
Disabled test IteratorsTest::takeExtractsTheFirstNElements
2013-08-09 14:29:53 +04:00
develar
411caef8ce
JS backend: cosmetic changes in javautil.kt:
...
- added some methods to AbstractList
- fixed codestyle
- moved up LinkedList declaration
2013-08-09 14:29:53 +04:00
develar
1435bdb7c7
JS backend: made some exceptions more JS idiomatic -- translate Exception to Error, IndexOutOfBounds and IndexOutOfBoundsException to RangeError.
2013-08-09 14:29:53 +04:00
develar
f5feb5e729
JS backend: added Kotlin.toString, Kotlin.arrayToString, Kotlin.arrayEquals and shim for Array.isArray to kotlin_lib.
...
Now jet.String will be translated to Kotlin.toString.
2013-08-09 14:29:53 +04:00
develar
50739b465e
JS backend: move common code to CompositeFIF.
2013-08-09 14:29:53 +04:00
develar
7ba0f0eb33
JS backend: refactoring
...
- add KotlinFunctionIntrinsic;
- remove CallStandardMethodIntrinsic
- rename TranslationUtils#generateCallArgumentList to TranslationUtils#generateInvocationArguments;
- add to PatternBuilder#pattern with root(prefix) parameter.
2013-08-09 14:29:53 +04:00
develar
2dbfbfc7fb
JS backend: fixed codestyle for TopLevelFIF.java.
...
(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar
bf8d5d797a
JS backend: refactoring the code for using special implementation of Map/Set for primitives (Int, String etc.) -- made it intrinsic.
...
Properly implementation for KT-2026.
(cherry picked from commit 6335bc4)
2013-08-09 14:29:52 +04:00
develar
1fab7346cc
JS backend: don't bind this if it is not need -- skip methods defined in class, for example Int::plus
...
(cherry picked from commit e2334f7)
2013-08-09 14:29:52 +04:00
develar
995f898116
JS backend: added String.isEmpty
...
(cherry picked from commit 6cf1761)
2013-08-09 14:29:52 +04:00
develar
7c18ab3ca8
JS backend: cleanup strings code.
...
Added String.size and String.length().
2013-08-09 14:29:52 +04:00
develar
678f6601dd
JS backend: made as intrinsic map accessing methods and fixed accessing to native map.
2013-08-09 14:29:52 +04:00
develar
be4e1b7599
JS backend: translate invoke function as intrinsic.
2013-08-09 14:29:52 +04:00
develar
7b67c47594
JS backend: descriptor parameter of DescriptorPredicate#apply marked as @NotNull.
2013-08-09 14:29:51 +04:00
Zalim Bashorov
9b09d5f6df
JS backend: fixed String.split for the case when using regexp.
...
Added(overload) String.split with limit parameter.
2013-08-09 14:29:51 +04:00
develar
0341d875a9
JS backend: cleanup code.
...
Drop Kotlin.toString and jet.sure.
2013-08-09 14:29:51 +04:00
develar
f1c258f601
JS backend: make MutableMap.set as function intrinsic.
...
Fixed test WebDemoExamples2Test#builder.
2013-08-09 14:29:51 +04:00
develar
63a72b1095
JS backend: performance optimization for CompositeFIF -- we don't need hash map.
...
(cherry picked from commit 7b29a01)
2013-08-09 14:29:51 +04:00
develar
8302879991
JS backend: added reviver parameter to JSON.parse.
...
Fixed code style in json.kt.
(cherry picked from commit b3bf97c)
2013-08-09 14:29:51 +04:00
develar
ddbea17e0f
JS backend: improve js readability which generated in the Dangerous translator -- initialize temporary vars in declaration.
...
(cherry picked from commit 4d8355c)
2013-08-09 14:29:50 +04:00
Zalim Bashorov
d4bf98de97
JS backend: fixed intrinsic of the typed array factory methods(intArray etc).
2013-08-09 14:29:50 +04:00
develar
1af35a6aff
JS backend: make intrinsic array factory methods.
...
#KT-2511 fixed
(cherry picked from commit 31843c5)
2013-08-09 14:29:50 +04:00
Natalia.Ukhorskaya
e0a899902c
Merge remote-tracking branch 'origin/pr/292'
2013-08-09 12:38:54 +04:00
Natalia.Ukhorskaya
2436ed1a17
Temporary change gradle output to show it in MessageView in Android-Studio
2013-08-09 12:24:09 +04:00
Evgeny Gerashchenko
3f7627120b
KT-3853 ISE on resolving function implementation from trait from Java
...
The fix is simple and dirty, because the related code will be removed soon anyways. Fix is necessary for compiling Kara.
#KT-3853 fixed
2013-08-08 21:39:25 +04:00
Nikita Skvortsov
405465fd25
Support kotlin-android-sdk-annotations in gradle plugin
2013-08-08 21:09:45 +04:00
Natalia.Ukhorskaya
6bb1474ee8
Publish android-sdk-annotations in Maven
2013-08-08 17:54:18 +04:00
Natalia.Ukhorskaya
aec1fa8697
Implement method from super class
2013-08-08 16:03:03 +04:00
Natalia.Ukhorskaya
bc9af296a5
Check is JavaBuilder.IS_ENABLED public
2013-08-08 16:02:58 +04:00