fn parse_optional_kind(&mut self, expected: TokenKind) -> Option<Token> {
        if self.peek_kind(expected) {
            Some(self.parse_token())
        } else {
            None
        }
    }
/// Parse the next token if it has the expected kind.
Parse the next token if it has the expected kind.
Parse the next token if it has the expected kind .
fn parse_optional_kind(&mut self, expected: TokenKind) -> Option<Token> {
        if self.peek_kind(expected) {
            Some(self.parse_token())
        } else {
            None
        }
    }
fn parse_optional_kind ( & mut self , expected : TokenKind ) -> Option < Token > { if self . peek_kind ( expected ) { Some ( self . parse_token ( ) ) } else { None } }
Parse the next token if it has the expected kind.
Parse the next token if it has the expected kind .
&mut self
expected
TokenKind
&mut self
expected
TokenKind