fn emit(&mut self, token: Token) -> Option<Result<SpannedToken, Diagnostic>> {
        let start = self.token_start;
        let end = self.token_end;
        self.token_start = self.token_end;
        Some(Ok((start, token, end)))
    }
/// Emit a token and reset the start position, ready for the next token.
Emit a token and reset the start position, ready for the next token.
Emit a token and reset the start position ready for the next token .
fn emit(&mut self, token: Token) -> Option<Result<SpannedToken, Diagnostic>> {
        let start = self.token_start;
        let end = self.token_end;
        self.token_start = self.token_end;
        Some(Ok((start, token, end)))
    }
fn emit ( & mut self , token : Token ) -> Option < Result < SpannedToken , Diagnostic > > { let start = self . token_start ; let end = self . token_end ; self . token_start = self . token_end ; Some ( Ok ( ( start , token , end ) ) ) }
Emit a token and reset the start position, ready for the next token.
Emit a token and reset the start position ready for the next token .
&mut self
token
Token
&mut self
token
Token