Replace branch data builder with putAll

This commit is contained in:
Alexander Nozik 2024-02-19 11:42:04 +03:00
parent aa88f05688
commit b575801983

View File

@ -15,7 +15,7 @@ public infix fun <T : Any> String.put(data: Data<T>): Unit =
*/
context(DataSink<T>)
public infix fun <T : Any> String.put(dataSet: DataTree<T>): Unit =
this.putAll(this, dataSet)
putAll(this, dataSet)
/**
* Build and append node
@ -23,5 +23,5 @@ public infix fun <T : Any> String.put(dataSet: DataTree<T>): Unit =
context(DataSink<T>)
public infix fun <T : Any> String.put(
block: DataSink<T>.() -> Unit,
): Unit = this.putAll(Name.parse(this), block)
): Unit = putAll(Name.parse(this), block)