applyStylesThen

fun A_Phrase.applyStylesThen(context: CompilationContext, visitedSet: MutableSet<A_Phrase>, then: () -> Unit)

Apply styles for this phrase in the context. Apply the styles for interesting subcomponents first. After these styles have been applied, invoke the then continuation action.

The visitedSet is passed along on this journey. At this point, it does not contain the receiver.

Parameters

context

The CompilationContext in which to write style information.

visitedSet

The MutableSet of A_Phrases that have been visited so far.

then

What to do after this phrase has been styled.