aboutsummaryrefslogtreecommitdiff
path: root/src/checker/entity.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-17 11:39:08 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-17 11:40:00 +0100
commit67694c0df07c758effbc7dcb10c76a2b2bffe5d0 (patch)
treed1b0d26cfbb81fba0b16410856dcf21a3f274a69 /src/checker/entity.cpp
parenteb424bb315a880bf52fe843733445dfb502c1525 (diff)
VarDecl and ConstDecl split; error, warning, et al. now global
Diffstat (limited to 'src/checker/entity.cpp')
-rw-r--r--src/checker/entity.cpp3
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] == '_') {