mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Align on FileStart/FileEnd for naming. (#3428)
The lexer has been using EndOfFile form (stemming from EOF), parser went to FileEnd form. This consolidates on FileEnd form.
This commit is contained in:
@@ -25,7 +25,7 @@ auto HandleDeclScopeLoop(Context& context) -> void {
|
||||
auto position_kind = context.PositionKind();
|
||||
switch (position_kind) {
|
||||
case Lex::TokenKind::CloseCurlyBrace:
|
||||
case Lex::TokenKind::EndOfFile: {
|
||||
case Lex::TokenKind::FileEnd: {
|
||||
// This is the end of the scope, so the loop state ends.
|
||||
context.PopAndDiscardState();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user