tryCopy

fun <T : WithChildren<*>> T.tryCopy(newChildren: List<DocTag>): T

Attempts to copy the current instance of this with the new children provided.

Return

a new instance of the same type as this with the new children set, or this if the copy operation fails

Parameters

newChildren

the new children to set in the copied instance