mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:14:42 +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:
@@ -27,8 +27,8 @@ class StringLiteralTest : public ::testing::Test {
|
||||
|
||||
auto Parse(llvm::StringRef text) -> llvm::StringRef {
|
||||
StringLiteral token = Lex(text);
|
||||
Testing::SingleTokenDiagnosticTranslator translator(text);
|
||||
DiagnosticEmitter<const char*> emitter(translator, error_tracker);
|
||||
Testing::SingleTokenDiagnosticConverter converter(text);
|
||||
DiagnosticEmitter<const char*> emitter(converter, error_tracker);
|
||||
return token.ComputeValue(allocator, emitter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user