pub fn similar_tokens(&self) -> Option<Vec<TokenKind>> {
        match *self {
            Comma => Some(vec![Dot, Lt, Semi]),
            Semi => Some(vec![Colon, Comma]),
            _ => None
        }
    }
/// Returns tokens that are likely to be typed accidentally instead of the current token.
/// Enables better error recovery when the wrong token is found.
Returns tokens that are likely to be typed accidentally instead of the current token.
Enables better error recovery when the wrong token is found.
Returns tokens that are likely to be typed accidentally instead of the current token . Enables better error recovery when the wrong token is found .
pub fn similar_tokens(&self) -> Option<Vec<TokenKind>> {
        match *self {
            Comma => Some(vec![Dot, Lt, Semi]),
            Semi => Some(vec![Colon, Comma]),
            _ => None
        }
    }
pub fn similar_tokens ( & self ) -> Option < Vec < TokenKind > > { match * self { Comma => Some ( vec ! [ Dot Lt Semi ] ) , Semi => Some ( vec ! [ Colon Comma ] ) , _ => None } }
Returns tokens that are likely to be typed accidentally instead of the current token.
Returns tokens that are likely to be typed accidentally instead of the current token .
&self