/// Determines whether or not the given subtokens match a double-word keyword,
/// and returns that keyword in case they do.
Determines whether or not the given subtokens match a double-word keyword,
and returns that keyword in case they do.
Determines whether or not the given subtokens match a double - word keyword and returns that keyword in case they do .
fn matches_double_keyword(st1: &SubToken, st2: &SubToken) -> Option<TokenKind> {
    if_chain! {
        if let SubTokenKind::Word(w1) = st1.kind;
        if let SubTokenKind::Word(w2) = st2.kind;
        then {
            DOUBLE_KEYWORDS.get(&(w1, w2)).cloned()
        } else {
            None
        }
    }
}
fn matches_double_keyword ( st1 : & SubToken , st2 : & SubToken ) -> Option < TokenKind > { if_chain ! { if let SubTokenKind Word ( w1 ) st1 kind if let SubTokenKind Word ( w2 ) st2 kind then { DOUBLE_KEYWORDS get ( ( w1 w2 ) ) cloned ( ) } else { None } } }
Determines whether or not the given subtokens match a double-word keyword,
and returns that keyword in case they do.
Determines whether or not the given subtokens match a double - word keyword and returns that keyword in case they do .
st1
&SubToken
st2
&SubToken