mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +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:
@@ -167,7 +167,7 @@ auto HandleImport(Context& context) -> void {
|
||||
context.AddLeafNode(NodeKind::ImportIntroducer, intro_token);
|
||||
|
||||
switch (context.packaging_state()) {
|
||||
case Context::PackagingState::StartOfFile:
|
||||
case Context::PackagingState::FileStart:
|
||||
// `package` is no longer allowed, but `import` may repeat.
|
||||
context.set_packaging_state(Context::PackagingState::InImports);
|
||||
[[clang::fallthrough]];
|
||||
|
||||
Reference in New Issue
Block a user