Ilya Gorbunov
ca8bf395c3
Do not create iterator in 'any', 'none', 'all' and 'count' unless necessary
...
#KT-19133 Fixed
2017-07-26 22:42:29 +03:00
Ilya Gorbunov
f10ea03173
Provide extension to get mutable iterator from the mutable map
...
#KT-18992 Fixed
2017-07-24 21:02:15 +03:00
Roman Elizarov
9f0810f723
Pull implementations up from AbstractCoroutineContextElemenet
...
Fixes KT-18671
2017-07-19 08:59:43 +03:00
Alexander Udalov
3c04ca4397
Update KotlinVersion.CURRENT to 1.1.5
2017-07-14 21:03:06 +03:00
Igor Chevdar
fd380f7545
Split up test on map access onto two tests: stdlib & compiler box test
2017-07-12 15:12:33 +03:00
Alexey Andreev
811da2e285
Compile stdlib-js with source map
2017-07-09 14:22:08 +03:00
Ilya Gorbunov
fe17c4416e
Fix a typo: retail -> retain
...
#KT-18526 Fixed
2017-07-01 17:05:17 +03:00
Stuart Kent
962958c403
Fix String capitalize/decapitalize sample references and sample names
2017-07-01 17:05:17 +03:00
Igor Chevdar
d7e4350d42
Ignored/fixed some tests for Kotlin/Native
2017-06-28 12:54:32 +03:00
Ilya Gorbunov
4798c029de
Limit visibility of sublists, make them implement RandomAccess
2017-06-10 10:00:15 +03:00
Denis Zharkov
eedc35aefd
Drop new coroutine-related API introduced in 1.1.4
...
See 49453ca705 for clarification
#KT-17898 Fixed
2017-05-22 14:51:04 +03:00
Ilya Gorbunov
2500a182e5
Refactor: use sam-like constructor for comparators
2017-05-17 19:34:44 +03:00
Ilya Gorbunov
ddf6599b38
Do not use spread-operator when it causes excessive array copying
2017-05-17 19:34:44 +03:00
Denis Zharkov
2c5baf6c08
Make companion object private to avoid its presence in public API
2017-05-16 11:38:59 +03:00
Ilya Gorbunov
ab70307cc0
Minor: refactor iterable tests
2017-05-05 18:01:02 +03:00
Ilya Gorbunov
2792dbf988
Import for buildSequence in generated code for sequences
2017-05-05 18:01:02 +03:00
Denis Zharkov
c3a032ea0b
Generate state machine for named functions in their bodies
...
Inline functions aren't supported yet in the change
#KT-17585 In Progress
2017-05-05 14:01:50 +03:00
Anton Bannykh
a71e5abb45
Update KotlinVersion.CURRENT to 1.1.4
2017-05-04 15:24:40 +03:00
Ilya Gorbunov
9953efc66b
Clarify ReentrantReadWriteLock.write behavior regarding upgrade from read to write lock
...
#KT-17704 Fixed
2017-05-03 17:51:14 +03:00
Ilya Gorbunov
ef72371fd7
Add samples for contentToString and contentDeepToString array operations
2017-05-03 17:44:30 +03:00
Marek Langiewicz
934b0b8c38
Fix List.takeLast for lists without RandomAccess
2017-05-03 16:38:15 +02:00
Ilya Gorbunov
8da4839f22
Document IllegalArgumentException thrown from string-number conversion
...
functions when an invalid radix is specified
#KT-17635 Fixed
2017-05-03 17:32:49 +03:00
Ilya Gorbunov
e0a4f9ba76
Rewrite precondition samples and refactor precondition tests
...
Precondition tests are shared for JS target.
Samples do not use assertFailsWith as expression, as it's going to be converted as a special template.
2017-04-21 21:13:25 +03:00
Ilya Gorbunov
ec8ead754f
Run kotlin-test-js tests with kotlin-stdlib-js
...
Rework kotlin-test common tests to make them runnable with qunit.
Change the way how asserter is overridden in js box tests.
Minor: remove unneeded test configs
2017-04-21 20:51:07 +03:00
Zalim Bashorov
c112542935
KJS: remove unnecessary test runners (mostly for stdlib)
...
Stdlib tests run separately via gradle.
2017-04-20 16:19:05 +03:00
Ilya Gorbunov
2db8714fc5
Fix null values being treated as missing in 'put' method of a specialized string-keyed map
2017-04-19 18:32:47 +03:00
Ilya Gorbunov
59dc0f57fc
Clarify copyRecursively behavior in case of a single file.
2017-04-18 21:26:55 +03:00
Shaun Reich
7ebd86725f
Fix FileTreeWalk doc typo/grammar
2017-04-18 21:26:53 +03:00
Ilya Gorbunov
ea18282f4c
Minor: reformat docs to distinguish summary
2017-04-18 21:26:52 +03:00
Ilya Gorbunov
6ae19e03d5
Clean warnings and refactor stdlib tests.
...
Merge RangeJVMTest into RangeTest.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
cb186aabf9
Another workaround for IDEA shared source root limitation
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
4a5d8534c1
Fix array iterators to adhere to Iterator contract
...
#KT-17453 Fixed
Change expected exceptions in tests.
2017-04-18 18:51:20 +03:00
Ilya Gorbunov
f22375601b
Remove unneeded suppressions
2017-04-18 12:47:11 +03:00
Ilya Gorbunov
8f452ed046
Cleanup warnings in stdlib and generated code
2017-04-18 12:47:04 +03:00
Ilya Gorbunov
6af986cfdd
Refactor serialization tests and move them to test/io package
...
Add tests for singleton deserializing.
2017-04-18 12:46:52 +03:00
Alexander Udalov
10f2e9d33a
Revert usages of -X arguments to old form in some places
...
We use the old compiler in Gradle build and in GradleFacetImportTest, so
some changes in f4b6db4 should not have been made yet
2017-04-17 11:33:58 +03:00
Alexander Udalov
f4b6db4dc0
Change format of -X arguments to require value after '='
...
Report a warning when an argument is passed in the old form (with the
whitespace)
#KT-17264 Fixed
2017-04-14 20:07:54 +03:00
Alexander Udalov
7fe9b99087
Support different target platforms for modules in AnalyzerFacade
...
Instead of reusing the same AnalyzerFacade that is used for resolution
of a module to resolve its dependencies, analyze each dependency
module/library with a facade depending on its target platform. Introduce
and use CommonLibraryDetectionUtil in addition to
KotlinJavaScriptLibraryDetectionUtil, to detect common libraries (with
.kotlin_metadata files).
Note that before multi-platform projects, this was not needed because
there were only two platforms (JVM and JS), and JVM module had only JVM
modules/libraries as dependencies, JS module had only JS
modules/libraries as dependencies. Now, for example, a JVM module can
have a common module/library as a dependency, and it would be incorrect
to analyze that dependency with JvmAnalyzerFacade because that facade
does not know anything about .kotlin_metadata files.
The changes in Dsl.kt and KotlinCacheServiceImpl.kt are needed because
PsiElement.getJavaDescriptorResolver, called from some IDE code, started
to fail on a common module, because the container for a common module
does not have the JavaDescriptorResolver
2017-04-14 00:44:00 +03:00
Ilya Gorbunov
37e046f6cd
Provide shortcuts for producing quick compiler for maven and rebuilding stdlib-js from ant.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
5aabcb6ea3
Update build instructions in ReadMe to include gradle build step.
...
Also update links and overall readme structure.
2017-04-08 08:37:12 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Ilya Gorbunov
88e6f2160a
Build and verify runnable samples with gradle.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
3db1613167
Setup dist task to assemble libs for compiler distribution.
...
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.
Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.
Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
0b2cadc638
Provide a method for common publishing configuration.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
92ef26606b
Refactor build to make manifest specification less error-prone.
...
Use legacy implementation title in manifest of JS stdlib for now.
Change the way common jvm project configurations is applied.
Add missing artifacts to common libraries.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
325ebfbd5f
Use karma plugin to run kotlin-stdlib-js tests.
...
Also create html page to run tests interactively in browser.
Use karma-teamcity-reporter 0.1.2 to workaround https://github.com/karma-runner/karma-teamcity-reporter/issues/38
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
dedf9fe898
kotlin-stdlib-js: copy sources in order to prevent duplicate source root in IDEA
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
65a800840c
Use single task for empty javadocs.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
4645fc4b7b
Build reflection classes with gradle
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
e090a44b71
Migrate binary-compatibility-validator tests to gradle.
2017-04-06 20:32:37 +03:00