mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add @_private(from: "SourceFile.swift") imports
A module compiled with `-enable-private-imports` allows other modules to import private declarations if the importing source file uses an ``@_private(from: "SourceFile.swift") import statement. rdar://29318654
This commit is contained in:
@@ -304,6 +304,8 @@ FileUnit *SerializedModuleLoaderBase::loadAST(
|
||||
M.addFile(*fileUnit);
|
||||
if (extendedInfo.isTestable())
|
||||
M.setTestingEnabled();
|
||||
if (extendedInfo.arePrivateImportsEnabled())
|
||||
M.setPrivateImportsEnabled();
|
||||
|
||||
auto diagLocOrInvalid = diagLoc.getValueOr(SourceLoc());
|
||||
loadInfo.status =
|
||||
|
||||
Reference in New Issue
Block a user