Ilya Gorbunov
3b989cc815
Avoid using 'D' component in ISO duration string representation
...
Days in ISO have nominal duration, they are not always equal to 24H
2019-06-18 04:02:34 +03:00
Ilya Gorbunov
6dbc2eeb90
Provide more efficient ClockMark implementation
...
Do not use default 'plus' operator implementation, that creates a wrapping
AdjustedClockMark instance, create instance of the same type instead.
2019-06-18 04:02:34 +03:00
Ilya Gorbunov
8c730e180c
Make ClockMark an abstract class instead of an interface
2019-06-18 04:02:34 +03:00
Ilya Gorbunov
04ec90164e
Use ThreadLocals to cache DecimalFormat instances
2019-06-18 04:02:34 +03:00
Ilya Gorbunov
368452748b
Move convertDurationUnit into Duration companion
2019-06-18 04:02:33 +03:00
Ilya Gorbunov
ca10d13f34
Rename Duration storage property to 'value'
2019-06-18 04:02:33 +03:00
Ilya Gorbunov
365cbb94cd
Change Duration.absoluteValue to property
2019-06-18 04:02:33 +03:00
Ilya Gorbunov
3f7a0d0845
Rename DurationMeasured to TimedValue, withMeasureTime to measuredTimeValue
...
Add measureTime docs
2019-06-18 04:02:33 +03:00
Ilya Gorbunov
9deac2a591
Rename withComponents to toComponents and add two overloads of them
2019-06-18 04:02:33 +03:00
Ilya Gorbunov
796ad29637
Add shortcuts to convert duration to milliseconds and nanoseconds
2019-06-18 04:02:32 +03:00
Ilya Gorbunov
8004c34e44
Reduce Duration API surface, add top-level docs
...
- toDuration(unit) extension instead of constructors
- toDouble/Long/Int(unit) function instead of inUnits()
- remove static factory functions
- remove MIN_VALUE/MAX_VALUE constants
2019-06-18 04:02:32 +03:00
Ilya Gorbunov
682430766b
Add ClockMark and measureTime tests with test clock
2019-06-18 04:02:32 +03:00
Ilya Gorbunov
b5d16f1a9b
Simplify Clock/ClockMark design
...
- Do not require initialElapsed parameter
- Introduce instead ClockMark +- Duration operators
- Do not require ClockMark to expose its originating Clock back
- Turn elapsedFrom property into elapsed() function
- Rename abstract clock classes
- Fix unit of abstract clocks when constructing them
Add top-level docs for Clocks
2019-06-18 04:02:32 +03:00
Ilya Gorbunov
ca29cfb88d
Implement MonoClock in JS
...
It uses either process.hrtime() in node.js or performance.now() in browser,
falling back to Date.now() if the latter is not available
2019-06-18 04:02:31 +03:00
Ilya Gorbunov
b816f50d4d
Implement and test default string formatting in JVM and JS
...
Relax Duration.toString tests for JS and Native rounding specifics
2019-06-18 04:01:55 +03:00
Ilya Gorbunov
804d2b2d8c
Helper utilities to execute test code on particular platforms
2019-06-18 03:59:52 +03:00
Ilya Gorbunov
c1f7fd0281
Duration: test toString in particular units
2019-06-18 03:59:52 +03:00
Ilya Gorbunov
b9c56af9ba
Change Duration value storage unit to ns
2019-06-18 03:59:52 +03:00
Ilya Gorbunov
690049c082
Duration unit tests
2019-06-18 03:59:52 +03:00
Ilya Gorbunov
7977b6cdb8
Implement DurationUnit in JS, add doc summary and conversion test
2019-06-18 03:59:51 +03:00
Ilya Gorbunov
37c5f2c54f
Initial prototype of Duration and Clocks API
2019-06-18 03:59:51 +03:00
Roman Artemev
1f70284b18
[JS IR BE] Fix charSequenceLength function for JS IR
2019-06-17 18:10:53 +03:00
Sergey Igushkin
41d8c536c3
Update Gradle module metadata warnings: don't warn when it's enabled
...
Also add a suggestion to enable the module metadata publishing in
Gradle 5.3+ projects that consume Gradle module metadata by default but
don't produce it unless explicitly enabled.
Issue #KT-31023 Fixed
2019-06-17 17:29:41 +03:00
Ilya Gorbunov
a1979677d0
Docs: mark all experimental annotations as MustBeDocumented
...
So that they are shown in the docs of annotated experimental API
2019-06-15 16:37:45 +03:00
Ilya Gorbunov
a55563f5ec
Docs: suppress docs for newly introduced hidden API
2019-06-15 16:37:44 +03:00
Roman Artemev
8015152bfc
[JS IR BE] Support JS IR in maven plugin
2019-06-14 18:41:00 +03:00
Vyacheslav Gerasimov
52303d65ab
Build: Fix test runtime for kotlinp tests
2019-06-14 18:06:04 +03:00
Vyacheslav Gerasimov
c4e33728a8
Build: Fix test runtime for gradle plugin tests
2019-06-14 00:44:36 +03:00
Ilya Gorbunov
1960161e78
Exclude inline reified functions and properties from public API
...
Public inline reified functions are getting into public API dump after
changing their visibility generation strategy (see KT-18563)
from always private to public synthetic. However, they still do not
constitute public binary API, since they can be removed without breaking
compatibility with an already compiled code.
2019-06-13 21:23:21 +03:00
Vyacheslav Gerasimov
5a39c637c2
Build: Fix intellij dependency leak from ir tree module
2019-06-13 21:03:55 +03:00
Kevin Peek
4c91ba90bb
Add links to Scope Functions docs (PR #2407 )
...
Add links to Scope Functions docs on kotlinlang.org to 'with', 'run', 'let', 'apply', and 'also' extension function docs
2019-06-13 20:49:38 +03:00
Alexander Udalov
18a4247226
Add kdoc for new API of kotlinx-metadata-jvm
...
#KT-26602
2019-06-13 18:00:42 +02:00
Alexander Udalov
980b7ace40
Minor, fix kdoc of KmModuleVisitor.visitPackageParts
...
Implementation implies that this method is called exactly once for each
package, and that makes more sense to require in the function contract
2019-06-13 18:00:42 +02:00
Alexander Udalov
41eedb69ca
Update kotlinx-metadata-jvm usage example in MetadataSmokeTest and ReadMe
2019-06-13 18:00:42 +02:00
Alexander Udalov
a680067ac3
Use new kotlinx-metadata API in binary-compatibility-validator
2019-06-13 18:00:42 +02:00
Alexander Udalov
5ee34503c0
Introduce new API for kotlinx-metadata-jvm
...
Kdocs are provided in a subsequent commit
#KT-26602 Fixed
2019-06-13 18:00:33 +02:00
Alexander Udalov
aa54a7e11a
Minor, move jvmExtensions.kt -> jvmExtensionVisitors.kt
2019-06-13 17:55:46 +02:00
Sergey Rostov
b2607b47e2
Gradle, tests runner, output stream handler: don't treat flush as new line
...
#KT-31931 Fixed
2019-06-12 17:03:22 +03:00
Sergey Rostov
d0e3ab1beb
Gradle, tests runner: don't use separate thread to parse process output
...
Or --scan will fail (see KT-31891 for more details).
To do it in same thread we should parse output on output stream calls.
TCServiceMessageOutputStreamHandler will do that.
Also, all new lines now preserved, so TCServiceMessagesClient should
ignore new lines after messages. New ignoreLineEndingAfterMessage setting
will do that.
#KT-31891 Fixed
2019-06-11 09:18:27 +03:00
Sergey Rostov
84b87a22e6
Gradle, tests runner: use OperationIdentifier object as id (not long)
...
#KT-31448 Fixed
#KT-30691 Fixed
2019-06-11 09:18:26 +03:00
Sergey Rostov
560f34bde5
Gradle, JS, webpack: add dependency to compile classpath
2019-06-08 20:36:09 +03:00
Sergey Rostov
354bf1f308
Gradle, JS, run: don't add dependency from project run task
...
As js webpack-dev-server will not finish
2019-06-08 20:36:09 +03:00
Sergey Rostov
45d4a9d67c
Gradle, js: rename objects to avoid clashing with moowork nodejs plugin
...
#KT-31834 Fixed
2019-06-08 20:36:09 +03:00
Sergey Rostov
b5515a31eb
Gradle, js, karma: useConfigDirectory DSL
...
#KT-31686 Fixed
2019-06-08 20:36:08 +03:00
Vyacheslav Gerasimov
5bde9720b7
Build: Fix dependencies on :kotlin-compiler project
...
Dependencies on :kotlin-compiler should never be used in configurations
which are imported transitively because ide fails to import it as
project dependency. When :kotlin-compiler dependency is imported as
kotlin-compiler.jar dependency ide re-indexes it on every change. This
behaviour is super annoying.
#KT-31120 Fixed
2019-06-08 19:36:28 +03:00
Ilya Chernikov
c39896165e
Fix script compiler options processing
2019-06-07 23:19:16 +02:00
Vyacheslav Gerasimov
2769dc8359
Build: Improve sourcesJar helper
...
- Add sources from embedded projects
- Add artifact to sources configuration
- Use register instead of create
#KT-30237 Fixed
2019-06-07 17:37:46 +03:00
Alexander Udalov
fec9ee6408
Minor, add kdoc for typeOf
2019-06-07 00:29:35 +02:00
Ilya Chernikov
e542c9ea84
Refactor script definitions and resolving/refining infrastructure:
...
- implement wrappers to wrap old and new API providers and resolvers
- make old API deprecated (with error where possible)
- drop old internal classes related to the old API
- refactor usages accordingly
- fix and add missing features to the scripting API where necessary
2019-06-06 17:21:00 +02:00
Ilya Chernikov
e5054f9648
Refactoring scripting infrastructure:
...
- add a helper for new constructing Compilation Configuration only when necessary
- add more converters for legacy diagnostics
- add helpers for simpler creating of failure results
2019-06-06 17:21:00 +02:00