replaceModifiers

abstract fun <T : HasModifiers> replaceModifiers(node: T, modifiers: ReadonlyArray<Modifier>?): T(source)
abstract fun <T : HasModifiers> replaceModifiers(node: T, modifiers: ModifierFlags?): T(source)

Updates a node that may contain modifiers, replacing only the modifiers of the node.