mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Avoid unnecessary relexing of the last line (#999)
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
committed by
GitHub
co-authored by
Richard Smith
parent
ad08148304
commit
22721da92b
@@ -22,7 +22,8 @@ namespace Carbon {
|
||||
|
||||
auto ParseTree::Parse(TokenizedBuffer& tokens, DiagnosticConsumer& consumer)
|
||||
-> ParseTree {
|
||||
TokenizedBuffer::TokenLocationTranslator translator(tokens);
|
||||
TokenizedBuffer::TokenLocationTranslator translator(
|
||||
tokens, /*last_line_lexed_to_column=*/nullptr);
|
||||
TokenDiagnosticEmitter emitter(translator, consumer);
|
||||
|
||||
// Delegate to the parser.
|
||||
|
||||
Reference in New Issue
Block a user