Rename DiagnosticLocationTranslator -> DiagnosticConverter (#3804)

Since the addition of TranslateArg, I don't think this type is going to
go away (cutting a TODO). Refactoring names slightly to fit the current
role, and adding const to ConvertLocation.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2024-03-21 23:35:04 +00:00
1 parent 033c68c45b
commit 0bd45f0d6b
22 files changed
+204 -211

No files matched your search

+2 -2
View File
@@ -20,8 +20,8 @@ auto HandleInvalid(Context& context) -> void {
auto Parse(Lex::TokenizedBuffer& tokens, DiagnosticConsumer& consumer,
llvm::raw_ostream* vlog_stream) -> Tree {
Lex::TokenLocationTranslator translator(&tokens);
Lex::TokenDiagnosticEmitter emitter(translator, consumer);
Lex::TokenDiagnosticConverter converter(&tokens);
Lex::TokenDiagnosticEmitter emitter(converter, consumer);
// Delegate to the parser.
Tree tree(tokens);