accept

open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts the error as a node if an error is present, otherwise accepts this node normally via acceptOnSuccess.

Return

the result of visiting the error node or this node

Parameters

visitor

the visitor to accept