Commit Graph

350 Commits

Author SHA1 Message Date
Alexander Udalov c7a7f31e82 Introduce module 'reflection', move KFunctionN to it
Metadata for KFunction classes is now longer serialized along with built-in
classes. This effectively means that it's no longer possible to find KFunction
classes via dependency on built-ins. There should be a kotlin-runtime library
in the specified classpath for reflection types to be resolvable.

A lot of tests were moved and changed, because tests on callable references
require stdlib in classpath from now on
2014-05-19 19:50:57 +04:00
Natalia Ukhorskaya da4e62e4be Gradle plugin: add compatibility with android-gradle-plugin 0.10.+
#KT-4984 Fixed
2014-05-16 16:37:29 +04:00
Alexander Udalov d42598a935 Move default inline flag to JVM back-end
- other back-ends are likely to have its own value of this flag
- get rid of DEFAULT_INLINE_FLAG_FOR_TEST
- the main goal was to simplify the default GenerationState constructor, which
  now always uses default inline flag value
2014-05-08 16:45:14 +04:00
Ilya Ryzhenkov 87745c05ae Fix filterNotNull and mapNotNull for streams. 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov 118126c744 Add toList() operation on Maps 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov 5537ff5f3c Add toSortedList operation for Streams 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov 9a7758bf4e Remove bogus filterIsInstance* on strings. 2014-04-24 12:59:42 +04:00
Ilya Ryzhenkov 6562ee4967 Rename "collection" parameter to "destination" in *To() functions. 2014-04-24 12:59:41 +04:00
Ilya Ryzhenkov e43d08d228 Fix typo 2014-04-24 12:59:41 +04:00
Ilya Ryzhenkov 89c1260627 Fix formatting in Engine and templates 2014-04-24 12:59:41 +04:00
Ilya Ryzhenkov cbc0e6404e Support String in generators, and migrate generated functions. 2014-04-24 12:59:41 +04:00
Ilya Ryzhenkov d9d5631a16 Optimize selection functions, add guard checks. 2014-04-24 12:59:41 +04:00
Ilya Ryzhenkov d54fb97c5d Make all *Array.fill() extensions returning an array #KT-4760 Fixed 2014-04-24 12:59:40 +04:00
Ilya Ryzhenkov 1db035a0aa Slice functions for arrays and lists. 2014-04-24 12:59:40 +04:00
Alexander Udalov 09a8e284e5 Minor fix in kotlin-stdlib-gen
This change was forgotten in e3fffe2
2014-03-28 22:45:35 +04:00
Alexander Udalov e3fffe275b Fix implementation of Iterable<T>.take
#KT-4780 Fixed
2014-03-28 19:08:48 +04:00
Evgeny Gerashchenko 3962064bd2 Fixed compilation of KDoc 2014-03-26 23:55:12 +03:00
Nikita Skvortsov 4088f4a00e remove unneeded resources 2014-03-24 20:14:27 +04:00
Nikita Skvortsov 84314711c6 continue renaming tests 2014-03-24 20:14:26 +04:00
Nikita Skvortsov d2de398d3e clearly rename test projects 2014-03-24 20:14:24 +04:00
Nikita Skvortsov 0ee97faca1 allow modifying test resources path 2014-03-24 20:14:23 +04:00
Mikhael Bogdanov ca4609dd2a Support inline true/false options 2014-03-20 17:50:52 +04:00
Ilya Ryzhenkov ceb2aa57f9 Make two overloads of copyOf to preserve nullness when size doesn't change 2014-03-19 20:25:14 +04:00
Ilya Ryzhenkov 108fdc0097 Make stream plus operation actually streaming (lazy). 2014-03-19 20:25:14 +04:00
Ilya Ryzhenkov 06873e9d09 Library paths updated after migration to new stdlib generators 2014-03-19 20:25:12 +04:00
Ilya Ryzhenkov e37d8174c3 New stdlib generators 2014-03-19 20:25:11 +04:00
Ilya Ryzhenkov b60fd5acc1 Stable order in generated code for JS library 2014-03-19 20:25:10 +04:00
Alexander Udalov 338bc2f9ec Fix incorrect apidoc for 'kotlin'
KDoc was confused because now there are two package fragments for package
'kotlin' (built-ins and stdlib). KDoc's KPackage now has a list of descriptors,
not only one.

This fixes missing documentation for top-level members in package 'kotlin' in
the apidoc

 #KT-2521 Fixed
2014-03-17 19:09:08 +04:00
Alexander Udalov 93db022059 Minor, fix wrong string template in KAnnotation.toString() 2014-03-17 19:09:08 +04:00
Alexander Udalov 00170357fd Clean code in KDoc
Fix warnings, outdated TODOs, formatting, etc.
2014-03-17 19:09:08 +04:00
Alexander Udalov 0dfacd8b20 Make KDoc generate documentation on red code
KDoc is not a compiler, so it should not care whether or not the code is valid.
Therefore suppress the compiler's exit code, errors and warnings in KDoc plugin
2014-03-17 19:09:08 +04:00
Mikhael Bogdanov b1d76d6ab0 Maven inline option support 2014-03-17 17:28:46 +04:00
Mikhael Bogdanov 0b11c717c6 Gradle inline option support 2014-03-17 17:28:46 +04:00
Nikita Skvortsov 0b6947b722 Test common Gradle property for kotlin version 2014-03-17 15:26:25 +04:00
Natalia Ukhorskaya 904217d793 Gradle: set output directory to tmp/kotlin-classes to exclude it in IDE.
This is a temporary workaround: should be removed when Android Studio will get excluded output directories from Gradle Model (see AndroidContentRoot.java:35)
 #KT-4507 Fixed
2014-03-13 17:32:13 +04:00
Natalia Ukhorskaya 53e41e94d9 Fix maven tests 2014-03-13 13:56:28 +04:00
Natalia Ukhorskaya 3f2c43bab1 Remove unused resources 2014-03-12 11:31:09 +04:00
Natalia Ukhorskaya 94ccd8b2f2 Merge remote-tracking branch 'origin/pr/401'
Conflicts:
	libraries/tools/kotlin-gradle-plugin-core/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPlugin.kt
	libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinGradlePluginIT.kt
2014-03-12 11:28:23 +04:00
Natalia Ukhorskaya f1d2c2de0b Merge pull request #402 from nskvortsov/KT-4612
#KT-4612 Fixed
2014-03-12 06:59:43 +00:00
Zalim Bashorov 5f847bc7e7 JS backend: fixes after rename testFiles -> testData 2014-03-11 20:04:01 +04:00
Natalia Ukhorskaya 36387c533f Fix kotlin-android plugin for android-gradle:0.9+
#KT-4667 Fixed
2014-03-11 17:21:37 +04:00
Nikita Skvortsov 856e35cdf9 refactor tests, use common gradle integration tests module, deduplicate gradle binaries in test data 2014-03-08 18:57:38 +04:00
Nikita Skvortsov 84e832604d Add message about general gradle failure 2014-03-08 18:56:12 +04:00
Nikita Skvortsov 5bfaf75978 Extract Gradle wrapper to avoid duplicating binary resources 2014-03-08 16:46:35 +04:00
Nikita Skvortsov e5df62d78b use gradle integration tests module 2014-03-08 16:45:44 +04:00
Nikita Skvortsov 1ba842d47f fix test data 2014-03-08 16:44:48 +04:00
Nikita Skvortsov 6bdb37d745 Move Gradle Integration test classes to separate module for better re-use 2014-03-08 16:43:40 +04:00
Nikita Skvortsov b700296620 Fix KT-4168 use proper buildscript classpath 2014-03-07 14:38:25 +04:00
Alexander Udalov 6b0fce8cd5 Unsorted replacements "jet" -> "kotlin"
#KT-2896 Fixed
2014-03-02 19:55:15 +04:00
Alexander Udalov 3dcd85bdb4 Add toString() to Any, fix all tests
#KT-4517 Fixed
2014-03-02 19:54:49 +04:00