aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-06-04 19:57:09 +0100
committerGitHub <noreply@github.com>2024-06-04 19:57:09 +0100
commita0b1b8d1c34462cca0c81eef5e1c342ce17eba7a (patch)
tree110816ce24f2b3696da6801df223ff3a3eff806e /src/check_expr.cpp
parent3b7100f8e5cdf325a51926ba02f785a5443b0415 (diff)
parentdbaf1a1ce0a4228e9b3b07a020069dbf0b17136c (diff)
Merge pull request #3673 from laytan/implement-foreign-import-improvements-on-vendor
Implement `#exists(path)` and use it to provide good errors for common missing vendor libraries
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 6af80eed5..0830f65bd 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -7420,6 +7420,7 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
String name = bd->name.string;
if (
name == "location" ||
+ name == "exists" ||
name == "assert" ||
name == "panic" ||
name == "defined" ||
@@ -8341,6 +8342,7 @@ gb_internal ExprKind check_basic_directive_expr(CheckerContext *c, Operand *o, A
name == "assert" ||
name == "defined" ||
name == "config" ||
+ name == "exists" ||
name == "load" ||
name == "load_hash" ||
name == "load_directory" ||