Refactor information about tokens out into a new TokenKinds.def file. Use this
to share code a bit more, and fixes a diagnostic bug Uday pointed out where
parseCommaSeparatedList would print the wrong diagnostic when the end signifier
was not a ).
PiperOrigin-RevId: 202676858
diff --git a/lib/Parser/Lexer.h b/lib/Parser/Lexer.h
index f0274fe..4bbd9b7 100644
--- a/lib/Parser/Lexer.h
+++ b/lib/Parser/Lexer.h
@@ -50,7 +50,7 @@
void resetPointer(const char *newPointer) { curPtr = newPointer; }
private:
// Helpers.
- Token formToken(Token::TokenKind kind, const char *tokStart) {
+ Token formToken(Token::Kind kind, const char *tokStart) {
return Token(kind, StringRef(tokStart, curPtr-tokStart));
}