summaryrefslogtreecommitdiff
path: root/identifiers.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-25 23:38:15 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-25 23:38:15 -0400
commit1949636463f53675f04e1315ad84ecc87def57cb (patch)
tree421de652d28b966616a850feab09ab80aaaebb76 /identifiers.c
parent8e5951cefcffcd74674233637c07137c6f60ecc1 (diff)
improved struct member lookup
Diffstat (limited to 'identifiers.c')
-rw-r--r--identifiers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/identifiers.c b/identifiers.c
index b03a7be..a31600c 100644
--- a/identifiers.c
+++ b/identifiers.c
@@ -225,3 +225,8 @@ static Location ident_decl_location(File *file, Identifier i) {
Location l = {0};
return l;
}
+
+static bool ident_is_declared(Identifier i) {
+ return i && i->decl_kind != IDECL_NONE;
+}
+