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:
Jon Ross-Perkins
2022-12-08 15:31:04 -08:00
committed by GitHub
parent 0ef7fa3a1d
commit d42d864e82
9 changed files with 116 additions and 115 deletions
@@ -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();
}
}