Build tag to make all declarations within a file private to the package //+private

This commit is contained in:
gingerBill
2021-02-23 20:40:48 +00:00
parent 731e6ca3a6
commit 8f9111e552
4 changed files with 10 additions and 3 deletions

View File

@@ -199,6 +199,9 @@ bool is_entity_exported(Entity *e, bool allow_builtin = false) {
if (e->flags & EntityFlag_NotExported) {
return false;
}
if (e->file != nullptr && e->file->is_private) {
return false;
}
String name = e->token.string;
switch (name.len) {