mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Rename Lex::{Token,Line} -> Lex::{Token,Line}Index. (#3433)
As discussed [on discord](https://discord.com/channels/655572317891461132/655578254970716160/1178878128714678282) and today's toolchain discussion.
This commit is contained in:
@@ -44,7 +44,7 @@ extern "C" int LLVMFuzzerTestOneInput(const unsigned char* data,
|
||||
//
|
||||
// TODO: We should enhance this to do more sanity checks on the resulting
|
||||
// token stream.
|
||||
for (Lex::Token token : buffer.tokens()) {
|
||||
for (Lex::TokenIndex token : buffer.tokens()) {
|
||||
int line_number = buffer.GetLineNumber(token);
|
||||
CARBON_CHECK(line_number > 0) << "Invalid line number!";
|
||||
CARBON_CHECK(line_number < INT_MAX) << "Invalid line number!";
|
||||
|
||||
Reference in New Issue
Block a user