Resolve a raw token in every category, classifyOrder first to last, and
keep the hits the categories admit to a walk — one per category at most,
so for yields its complex-command record before its reserved-word one.
Empty when nothing resolves. The first element is the tie-broken answer
to "what is this token?"; a scoped resolve is the answer for a known
category. Each hit's record is a DocRecord: record.category
narrows it.
The walk order and the admission rule are lexicon properties, owned here
and pinned by the resolver fixture — consumers neither re-walk nor
re-filter.
Resolve a raw token in every category,
classifyOrderfirst to last, and keep the hits the categories admit to a walk — one per category at most, soforyields its complex-command record before its reserved-word one. Empty when nothing resolves. The first element is the tie-broken answer to "what is this token?"; a scopedresolveis the answer for a known category. Each hit'srecordis aDocRecord:record.categorynarrows it.The walk order and the admission rule are lexicon properties, owned here and pinned by the resolver fixture — consumers neither re-walk nor re-filter.