Commit Graph

1169 Commits

Author SHA1 Message Date
Michael Nedzelsky 8d10b3813b fix kotlin-js-library maven project 2014-12-12 03:03:40 +03:00
Michael Nedzelsky 103307432e update kotlin javascript stdlib if needed 2014-12-12 03:03:24 +03:00
Michael Nedzelsky 68113ff33d JS backend: change path to kotlin.js for tests 2014-12-12 03:03:00 +03:00
Denis Zharkov d345ba05dd Added inline function "Array" into stdlib
It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
2014-12-11 16:04:03 +03:00
Nikolay Krasko 0231aeb017 Memory leak in PermGen of Kotlin Gradle plugin when demon is used (KT-5420)
Stop background thread in Intellij Idea api and clear thread locals to allow gc the created class loader

 #KT-5420 In Progress
2014-12-11 15:30:01 +03:00
Nikolay Krasko 727c49146b Prepare for KT-5420 - Copy files before patch 2014-12-11 15:25:18 +03:00
Andrey Breslav ddd72e8582 Compilation fixed 2014-12-05 16:28:58 +03:00
Stanislav Erokhin b2774a9cd0 Fix classpath test for openjdk 2014-12-02 13:47:48 +03:00
Zalim Bashorov e6b69e48d9 Minor: fix JetCoreEnvironment#(createForProduction, createForTests) call sites for JVM. 2014-12-01 15:27:33 +03:00
Zalim Bashorov 912727e5d2 Unify extension point and extension registration in plugin and cli 2014-12-01 15:27:33 +03:00
Stanislav Erokhin 14d663bcab Fix maven kotlin-stdlib-validator task. 2014-12-01 14:35:40 +03:00
Nikolay Krasko 4342740195 Refactoring: move common code for ResolveSession init to method 2014-11-28 17:18:46 +03:00
Nikolay Krasko a42edb9c8f LTDA: Assert context was created for light class generation 2014-11-28 17:18:40 +03:00
Alexander Udalov 8dae1b62dd Add CharSequence.subSequence
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.

 #KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Alexander Udalov 4d95bcfc7e Rename CharSequence.get to charAt
This is done for JVM interoperability. There's still a member function
String.get() and an extension function "get" on CharSequence

 #KT-1730 Fixed
 #KT-5389 Fixed
2014-11-27 20:38:18 +03:00
Alexander Udalov a7b88e9485 Make CharSequence.length a function instead of property
And String.length as well.

This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.

A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)

 #KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Natalia Ukhorskaya 528c674001 Gradle plugin: add file to sourceList instead of Function1 fix 2014-11-25 16:26:14 +03:00
Nikita Skvortsov 1e9d303705 fix for KT-5420 2014-11-22 02:52:19 +03:00
Nikita Skvortsov 65946c3ded minor code style improvements 2014-11-22 02:52:18 +03:00
Pavel V. Talanov ae75c7ecd7 Update stdlib-validator after changes to AnalysisResult 2014-11-21 16:10:05 +03:00
Natalia Ukhorskaya 341d4a7a26 Fix maven build: remove wrong import 2014-11-21 15:07:06 +03:00
Natalia Ukhorskaya 68d5e43ad3 Android Gradle Plugin 0.14.4 breaks Kotlin
#KT-6310 Fixed
2014-11-21 12:41:19 +03:00
Zalim Bashorov eae86e035f Minor in stdlib: move String.trimLeading and String.trimTrailing to common place. 2014-11-18 15:57:50 +03:00
Stanislav Erokhin 65c9ea2465 Fix variance problems. 2014-11-17 17:45:05 +03:00
Alexander Udalov 93696ff9bd Make Array.indices extension property, move to stdlib
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Alexander Udalov 36a9a99b4f Minor, fix formatting in Arrays.kt in stdlib 2014-11-17 15:02:39 +03:00
Alexander Udalov 128c938965 Make Array.size() a function instead of a property
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00
Denis Zharkov e768b4e285 stdlib: Introduced filterIsInstance version
without class-literal as a parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov da5164acd8 stdlib: Introduced Array<T>?.orEmpty() in JVM-stdlib 2014-11-13 20:56:10 +03:00
Alexander Udalov 57d37a3860 Extract reflection implementation to module runtime.jvm 2014-11-11 18:35:40 +03:00
Denis Mekhanikov 323df9498a stdlib: fix DropStream & TakeStream mutliple iteration 2014-11-07 17:14:58 +03:00
Denis Mekhanikov 80493aa4e6 stdlib: improve tests 2014-11-07 17:14:57 +03:00
Denis Mekhanikov 495967a573 stdlib: fix documentation for some IO functions 2014-11-07 17:14:57 +03:00
Denis Mekhanikov 23397d17dc stdlib: simplify File.recurse and File.extension functions 2014-11-07 17:14:56 +03:00
Denis Mekhanikov 1a4c11cb98 stdlib: rearrange IO functions 2014-11-07 17:14:56 +03:00
Zalim Bashorov adab0445de K2JS: introduce "no-stdlb" parameter and use stdlib from compiler by default. 2014-11-07 16:30:52 +03:00
Zalim Bashorov 624f5c4c34 Minor: moved test for check the iterating over String to common place.
#KT-3617 Fixed
2014-11-07 16:30:50 +03:00
Ilya Ryzhenkov 8fc550f3b1 Fix split invocation in js tests. 2014-11-06 17:13:17 +03:00
Ilya Ryzhenkov 656bd028bc Remove dead commented code. 2014-11-06 16:45:58 +03:00
Ilya Ryzhenkov 2e154b73de Support componentN for arrays and lists #KT-5538 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov c2fabf5736 Comparator<T> replaced with Comparator<in T> #KT-6030 Fixed 2014-11-06 16:45:57 +03:00
Ilya Ryzhenkov 24ee79aa2d Replace ArrayList<Any>() with stdlib_emptyListClass() and fix test. #KT-6013 Fixed 2014-11-06 16:45:56 +03:00
Ilya Ryzhenkov 0dc68c2702 Avoid using negative in descending sorts. 2014-11-06 16:45:56 +03:00
Natalia Ukhorskaya 78bc15222b Gradle plugin: fix sourceSets for flavors (android) 2014-11-05 16:38:39 +03:00
Zalim Bashorov 9e11b40fe1 Add the support suppressWarnings, verbose and version in build tools. 2014-10-29 23:09:07 +03:00
Michael Bogdanov 25d7c9f20a Enabled disabled non-local returns in stdlib 2014-10-28 19:14:14 +03:00
Nikolay Krasko 8d86951a3b Refactoring: junit.framework.Assert -> org.junit.Assert 2014-10-27 12:47:43 +04:00
Nikolay Krasko 863ef64c61 Replace http://teamcity.jetbrains.com to https 2014-10-24 16:24:53 +04:00
Ron Shapiro 1ab0edb84c Correct Android variant compile task name
Corrects 'compiledebugKotlin' to 'compileDebugKotlin'
2014-10-21 16:40:06 -04:00
Michael Bogdanov da20845e9c Support non standart java source root configuration in gradle plugin
#KT-6051 Fixed
2014-10-21 09:46:59 +04:00