addChild

Returns a new node with child appended to this node's children. The receiver and every existing child subtree are reused unchanged (structural sharing).

Return

a new ImmutableTreeNode with child added; the receiver is not modified.

Parameters

child

the subtree to append.