Meta builder made inline

This commit is contained in:
Alexander Nozik 2020-12-04 11:20:20 +03:00
parent 2098d96561
commit 221cc65b78
2 changed files with 3 additions and 1 deletions

View File

@ -2,10 +2,12 @@
## [Unreleased]
### Added
- Yaml meta format based on yaml.kt
### Changed
- `ListValue` and `DoubleArrayValue` implement `Iterable`.
- Changed the logic of `Value::isList` to check for type instead of size
- `Meta{}` builder made inline
### Deprecated

View File

@ -142,4 +142,4 @@ public fun Meta.edit(builder: MetaBuilder.() -> Unit): MetaBuilder = builder().a
* Build a [MetaBuilder] using given transformation
*/
@Suppress("FunctionName")
public fun Meta(builder: MetaBuilder.() -> Unit): MetaBuilder = MetaBuilder().apply(builder)
public inline fun Meta(builder: MetaBuilder.() -> Unit): MetaBuilder = MetaBuilder().apply(builder)