mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 17:45:49 +01:00
Clean up handling of incomplete line locations. (#3011)
Building on #3010, the handling of incomplete lines seems like it can be straightened out. Doing this separately because it seemed better to demonstrate tests aren't affected by the change.
This commit is contained in:
@@ -20,8 +20,7 @@ namespace Carbon {
|
||||
|
||||
auto ParseTree::Parse(TokenizedBuffer& tokens, DiagnosticConsumer& consumer,
|
||||
llvm::raw_ostream* vlog_stream) -> ParseTree {
|
||||
TokenizedBuffer::TokenLocationTranslator translator(
|
||||
&tokens, /*last_line_lexed_to_column=*/nullptr);
|
||||
TokenizedBuffer::TokenLocationTranslator translator(&tokens);
|
||||
TokenDiagnosticEmitter emitter(translator, consumer);
|
||||
|
||||
// Delegate to the parser.
|
||||
|
||||
Reference in New Issue
Block a user