pub fn pick_best_token(
    tokens: TokenAtOffset<SyntaxToken>,
    f: impl Fn(SyntaxKind) -> usize
) -> Option<SyntaxToken>
Expand description

Picks the token with the highest rank returned by the passed in function.