createRoot

fun createRoot(allElements: Collection<Element>, knownArgumentRestrictions: List<TypeRestriction>, memento: Memento): LookupTree<Element, Result>

Create a LookupTree, using the provided collection of Elements, and the list of initial argument types.

Return

A LookupTree, potentially lazy, suitable for dispatching.

Parameters

allElements

The collection of Elements to categorize.

knownArgumentRestrictions

The initial knowledge about the argument types.

memento

A value used by this adaptor to construct a Result.