diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-23 20:40:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-23 20:40:48 +0000 |
| commit | 8f9111e5526d7bf4c58cfd127d45b1d229a3d9d3 (patch) | |
| tree | ec89180590e1505b2d5e59a0481be5dfe5d37058 /src/entity.cpp | |
| parent | 731e6ca3a6eda8039b36a81b5ac3683b89a487d4 (diff) | |
Build tag to make all declarations within a file private to the package `//+private`
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 0aece39c3..1712c7f98 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -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) { |