mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Serialization: Don't serialize contextual enum argument type
Storing this separately is unnecessary since we already serialize the enum element's interface type. Also, this eliminates one of the few remaining cases where we serialize archetypes during AST serialization.
This commit is contained in:
@@ -2694,8 +2694,8 @@ public:
|
||||
setClangDeclKeywords(EED, Pairs, Builder);
|
||||
addLeadingDot(Builder);
|
||||
Builder.addTextChunk(EED->getName().str());
|
||||
if (EED->hasArgumentType())
|
||||
addPatternFromType(Builder, EED->getArgumentType());
|
||||
if (auto argTy = EED->getArgumentInterfaceType())
|
||||
addPatternFromType(Builder, argTy);
|
||||
|
||||
// Enum element is of function type such as EnumName.type -> Int ->
|
||||
// EnumName; however we should show Int -> EnumName as the type
|
||||
|
||||
Reference in New Issue
Block a user