addElement

open override fun addElement(node: <Error class: unknown class>)

Captures node as the single root.

Throws

IllegalStateException

if a root was already set (more than one top-level node).