treeDoWithParent

fun treeDoWithParent(    self: A_Phrase,     aBlock: (A_Phrase, A_Phrase?) -> Unit,     parentNode: A_Phrase?)

Visit the entire tree with the given consumer, children before parents. The block takes two arguments: the phrase and its parent.

Parameters

self

The current A_Phrase.

aBlock

What to do with each descendant.

parentNode

This phrase's parent, or null.