mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterface] Mark dummy conformances with @_spi
Dummy conformances are generated when a conditional conformance is constrained by a type that is not to be printed. In case the types involved are SPI, mark the dummy conformance SPI in the private swiftinterface only.
This commit is contained in:
@@ -481,6 +481,8 @@ public:
|
||||
return false;
|
||||
assert(nominal->isGenericContext());
|
||||
|
||||
if (printOptions.PrintSPIs)
|
||||
out << "@_spi(" << DummyProtocolName << ")\n";
|
||||
out << "@available(*, unavailable)\nextension ";
|
||||
nominal->getDeclaredType().print(out, printOptions);
|
||||
out << " : ";
|
||||
|
||||
Reference in New Issue
Block a user