CdmNode.dup

CdmNode dup() const pure @safe

Creates a deep copy of this node.

All children, members (including member value pointers), attributes, and comments are recursively copied. The returned node is fully independent of the original.

Acyclicity precondition: the node graph must be acyclic. Cycles through raw member/attribute pointers are not detected.

Returns

An independent deep copy of this node.