diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-17 11:39:08 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-17 11:40:00 +0100 |
| commit | 67694c0df07c758effbc7dcb10c76a2b2bffe5d0 (patch) | |
| tree | d1b0d26cfbb81fba0b16410856dcf21a3f274a69 /src/checker/entity.cpp | |
| parent | eb424bb315a880bf52fe843733445dfb502c1525 (diff) | |
VarDecl and ConstDecl split; error, warning, et al. now global
Diffstat (limited to 'src/checker/entity.cpp')
| -rw-r--r-- | src/checker/entity.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker/entity.cpp b/src/checker/entity.cpp index 3a4ffb191..fd9c5ce8a 100644 --- a/src/checker/entity.cpp +++ b/src/checker/entity.cpp @@ -67,6 +67,9 @@ struct Entity { }; b32 is_entity_exported(Entity *e) { + if (e->kind == Entity_ImportName) { + return false; + } // TODO(bill): Do I really want non-exported entities? // if (e->token.string.len >= 1 && // e->token.string.text[0] == '_') { |