private Token MakeToken(TokenKind kind, string lexeme) { var span = kind == TokenKind.EndOfFile ? _reader.LatestEofSpan() : TokenStart.Combine(_reader.CurrentSpan()); return(new Token(kind, lexeme, span, TokenCount++)); }
private Token MakeToken(TokenKind kind, string lexeme) { var span = kind == TokenKind.EndOfFile ? _reader.LatestEofSpan() : TokenStart.Combine(_reader.CurrentSpan()); return(new Token(kind, lexeme, span, TokenCount++)); }