addChildrenTo

abstract fun addChildrenTo(list: MutableList<Pair<LookupTree<Element, Result>, List<L2SemanticValue>>>, semanticValues: List<L2SemanticValue>, extraSemanticValues: List<L2SemanticValue>)

Add the children LookupTrees, coupled with the available L2SemanticValues at that point, to the given list.

Note that the correct extraSemanticValues must be passed, which can be ensured by starting at the root and passing an emptyList.

Parameters

list

The List in which to add the children, in an arbitrary order. Each entry also contains the list of L2SemanticValues that are available upon reaching the corresponding position in the lookup tree.

semanticValues

The original L2SemanticValues that were available at the root of the lookup tree.

extraSemanticValues

A list of additional L2SemanticValues that are available at this position in the lookup tree, but were not at the top of the tree.