@@ -4687,17 +4687,17 @@ ParserResult<EnumDecl> Parser::parseDeclEnum(ParseDeclOptions Flags,
4687
4687
return makeParserCodeCompletionStatus ();
4688
4688
}
4689
4689
4690
- EnumDecl *UD = new (Context) EnumDecl (EnumLoc, EnumName, EnumNameLoc,
4690
+ EnumDecl *ED = new (Context) EnumDecl (EnumLoc, EnumName, EnumNameLoc,
4691
4691
{ }, GenericParams, CurDeclContext);
4692
- setLocalDiscriminator (UD );
4693
- UD ->getAttrs () = Attributes;
4692
+ setLocalDiscriminator (ED );
4693
+ ED ->getAttrs () = Attributes;
4694
4694
4695
4695
// Parse optional inheritance clause within the context of the enum.
4696
4696
if (Tok.is (tok::colon)) {
4697
- ContextChange CC (*this , UD );
4697
+ ContextChange CC (*this , ED );
4698
4698
SmallVector<TypeLoc, 2 > Inherited;
4699
4699
Status |= parseInheritance (Inherited, /* classRequirementLoc=*/ nullptr );
4700
- UD ->setInherited (Context.AllocateCopy (Inherited));
4700
+ ED ->setInherited (Context.AllocateCopy (Inherited));
4701
4701
}
4702
4702
4703
4703
diagnoseWhereClauseInGenericParamList (GenericParams);
@@ -4707,7 +4707,7 @@ ParserResult<EnumDecl> Parser::parseDeclEnum(ParseDeclOptions Flags,
4707
4707
auto whereStatus = parseFreestandingGenericWhereClause (GenericParams);
4708
4708
if (whereStatus.shouldStopParsing ())
4709
4709
return whereStatus;
4710
- UD ->setGenericParams (GenericParams);
4710
+ ED ->setGenericParams (GenericParams);
4711
4711
}
4712
4712
4713
4713
SourceLoc LBLoc, RBLoc;
@@ -4716,20 +4716,20 @@ ParserResult<EnumDecl> Parser::parseDeclEnum(ParseDeclOptions Flags,
4716
4716
RBLoc = LBLoc;
4717
4717
Status.setIsParseError ();
4718
4718
} else {
4719
- ContextChange CC (*this , UD );
4719
+ ContextChange CC (*this , ED );
4720
4720
Scope S (this , ScopeKind::ClassBody);
4721
4721
ParseDeclOptions Options (PD_HasContainerType | PD_AllowEnumElement | PD_InEnum);
4722
4722
if (parseNominalDeclMembers (LBLoc, RBLoc,
4723
4723
diag::expected_rbrace_enum,
4724
- Options, [&] (Decl *D) { UD ->addMember (D); }))
4724
+ Options, [&] (Decl *D) { ED ->addMember (D); }))
4725
4725
Status.setIsParseError ();
4726
4726
}
4727
4727
4728
- UD ->setBraces ({LBLoc, RBLoc});
4728
+ ED ->setBraces ({LBLoc, RBLoc});
4729
4729
4730
- addToScope (UD );
4730
+ addToScope (ED );
4731
4731
4732
- return DCC.fixupParserResult (Status, UD );
4732
+ return DCC.fixupParserResult (Status, ED );
4733
4733
}
4734
4734
4735
4735
// / \brief Parse a 'case' of an enum.
0 commit comments