mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We'd like to support factor initializers for distributed actor types that are synthesized by SILGen. We already do something similar for memberwise initializers for structs. Thus, this patch generalizes that concept into a new BodyKind for AbstractFunctionDecls called BodyKind::SILSynthesize. In addition, to help differentiate the kinds of AFDs that are SILSynthesized into different families for SILGen to recognize, we also have a new enum SILSynthesizeKind to indicate whether it is a memberwise init, etc.
8.9 KiB
8.9 KiB