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
This commit is contained in:
gingerBill
2024-06-04 19:57:09 +01:00
committed by GitHub
28 changed files with 244 additions and 135 deletions

View File

@@ -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" ||