Open Kampfkarren opened 3 years ago
names I would pick: TokenType becomes Token TokenKind becomes TokenType Token becomes SpannedToken TokenReference becomes... SpannedTokenWithTrivia?
names I would pick:
Based on @tomprince's work, TokenReference will be WithTrivia<Token>, and potentially Token to Spanned<Token>.
WithTrivia<Token>
Token
Spanned<Token>
I think TokenKind is a better name than TokenType. It lines up better with all the ErrorKind enums, which serve a similar purpose.
TokenKind
TokenType
ErrorKind
Yeah, I agree, I'm just copying the old message.
Based on @tomprince's work, TokenReference will be
WithTrivia<Token>
, and potentiallyToken
toSpanned<Token>
.