Allow @(require_results) on foreign blocks

This commit is contained in:
gingerBill
2024-08-14 11:28:49 +01:00
parent 78fa675c1a
commit fd5376ba88
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -204,9 +204,12 @@ struct DeclInfo {
Array<Ast *> attributes;
Ast * proc_lit; // Ast_ProcLit
Type * gen_proc_type; // Precalculated
bool is_using;
bool where_clauses_evaluated;
bool foreign_require_results;
std::atomic<ProcCheckedState> proc_checked_state;
BlockingMutex proc_checked_mutex;
isize defer_used;
bool defer_use_checked;
@@ -322,6 +325,7 @@ struct ForeignContext {
String link_prefix;
String link_suffix;
EntityVisiblityKind visibility_kind;
bool require_results;
};
typedef Array<Entity *> CheckerTypePath;