Add //+private file to complement //+private (//+private package)

This commit is contained in:
gingerBill
2022-02-02 15:28:49 +00:00
parent a04d849e30
commit 78815778ee
5 changed files with 32 additions and 11 deletions

View File

@@ -245,7 +245,7 @@ bool is_entity_exported(Entity *e, bool allow_builtin = false) {
if (e->flags & EntityFlag_NotExported) {
return false;
}
if (e->file != nullptr && (e->file->flags & AstFile_IsPrivate) != 0) {
if (e->file != nullptr && (e->file->flags & (AstFile_IsPrivatePkg|AstFile_IsPrivateFile)) != 0) {
return false;
}