-show-defineables and -export-defineables

This commit is contained in:
Laytan Laats
2024-06-06 19:44:54 +02:00
parent b196b84ef2
commit 9a95049393
5 changed files with 150 additions and 1 deletions
+12
View File
@@ -376,6 +376,15 @@ struct GenTypesData {
RecursiveMutex mutex;
};
struct Defineable {
String name;
ExactValue default_value;
TokenPos pos;
String default_value_str;
String pos_str;
};
// CheckerInfo stores all the symbol information for a type-checked program
struct CheckerInfo {
Checker *checker;
@@ -402,6 +411,9 @@ struct CheckerInfo {
Array<Entity *> entities;
Array<Entity *> required_foreign_imports_through_force;
BlockingMutex defineables_mutex;
Array<Defineable> defineables;
// Below are accessed within procedures
RwMutex global_untyped_mutex;