mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:21:04 +01:00
Make TokenKind's API closer to toolchain's typical API setup. (#2456)
This is somewhat based on the name vs Name difference, but I figured I'd split it out and just sweep up the API on the whole while looking at a different approach to #2453
This commit is contained in:
@@ -345,7 +345,7 @@ auto SemanticsParseTreeHandler::HandleInfixOperator(ParseTree::Node parse_node)
|
||||
parse_node, result_type, lhs_id, rhs_id));
|
||||
break;
|
||||
default:
|
||||
CARBON_FATAL() << "Unrecognized token kind: " << token_kind.Name();
|
||||
CARBON_FATAL() << "Unrecognized token kind: " << token_kind.name();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@ auto SemanticsParseTreeHandler::HandleLiteral(ParseTree::Node parse_node)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
CARBON_FATAL() << "Unhandled kind: " << token_kind.Name();
|
||||
CARBON_FATAL() << "Unhandled kind: " << token_kind.name();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user