[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:
Alexis Laferrière
2020-09-15 21:17:21 -07:00
parent dac3922090
commit 2451e6804a

View File

@@ -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 << " : ";