mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 13:21:05 +01:00
Unify DeclaredName and DesignatedName as just Identifier (#2939)
This is just a simplification: I think these different forms are getting in the way more than they're helping, particularly as I was looking into namespace functionality. The handling in semantics can be identical, providing a more uniform behavior.
This commit is contained in:
@@ -20,7 +20,7 @@ auto ParserHandlePackage(ParserContext& context) -> void {
|
||||
};
|
||||
|
||||
if (!context.ConsumeAndAddLeafNodeIf(TokenKind::Identifier,
|
||||
ParseNodeKind::DeclaredName)) {
|
||||
ParseNodeKind::Identifier)) {
|
||||
CARBON_DIAGNOSTIC(ExpectedIdentifierAfterPackage, Error,
|
||||
"Expected identifier after `package`.");
|
||||
context.emitter().Emit(*context.position(), ExpectedIdentifierAfterPackage);
|
||||
|
||||
Reference in New Issue
Block a user