mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Build tag to make all declarations within a file private to the package //+private
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user