mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user