mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Parse: Use ScopeKind::EnumBody not ScopeKind::ClassBody for enum body
This commit is contained in:
@@ -5740,7 +5740,7 @@ ParserResult<EnumDecl> Parser::parseDeclEnum(ParseDeclOptions Flags,
|
||||
RBLoc = LBLoc;
|
||||
Status.setIsParseError();
|
||||
} else {
|
||||
Scope S(this, ScopeKind::ClassBody);
|
||||
Scope S(this, ScopeKind::EnumBody);
|
||||
ParseDeclOptions Options(PD_HasContainerType | PD_AllowEnumElement | PD_InEnum);
|
||||
if (canDelayMemberDeclParsing()) {
|
||||
if (delayParsingDeclList(LBLoc, RBLoc, PosBeforeLB, Options, ED))
|
||||
|
||||
Reference in New Issue
Block a user