resolve
inline fun <T : Declaration> resolve(searchScope: Scope?, stopIfFound: Boolean = false, noinline predicate: (T) -> Boolean): List<T>
Traverses the scope upwards and looks for declarations of type T which matches the condition predicate.
It returns a list of all declarations that match the predicate, ordered by reachability in the scope stack. This means that "local" declarations will be in the list first, global items will be last.
Parameters
search Scope
the scope to start the search in
predicate
predicate the element must match to