visitAll

fun visitAll(phrases: Collection<A_Phrase>, visitedSet: MutableSet<A_Phrase>, then: () -> Unit)

Process all of the phrase's subphrases recursively, then style the phrase itself, then invoke the given action.

The phrases are processed in parallel, and the then action is performed only when all of the phrases have been processed.

Parameters

phrases

The Collection of A_Phrases to process.

visitedSet

The Set of A_Phrases that should not be traversed again.

then

The action to invoke after the phrases have been fully processed.