mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Intro @_spiOnly attribute and import filter
Introduce the attribute and basic import filter logic.
This commit is contained in:
@@ -696,11 +696,13 @@ public:
|
||||
Default = 1 << 1,
|
||||
/// Include imports declared with `@_implementationOnly`.
|
||||
ImplementationOnly = 1 << 2,
|
||||
/// Include imports of SPIs declared with `@_spi`
|
||||
/// Include imports of SPIs declared with `@_spi`.
|
||||
SPIAccessControl = 1 << 3,
|
||||
/// Include imports declared with `@_spiOnly`.
|
||||
SPIOnly = 1 << 4,
|
||||
/// Include imports shadowed by a cross-import overlay. Unshadowed imports
|
||||
/// are included whether or not this flag is specified.
|
||||
ShadowedByCrossImportOverlay = 1 << 4
|
||||
ShadowedByCrossImportOverlay = 1 << 5
|
||||
};
|
||||
/// \sa getImportedModules
|
||||
using ImportFilter = OptionSet<ImportFilterKind>;
|
||||
|
||||
Reference in New Issue
Block a user