Change behaviour of switch v in &value to make v have by-reference semantics

This commit is contained in:
gingerBill
2020-03-24 14:29:54 +00:00
parent dfc63dcb60
commit 5cbb266ef5
5 changed files with 84 additions and 58 deletions

View File

@@ -2,6 +2,8 @@ struct Scope;
struct Checker;
struct Type;
struct DeclInfo;
struct lbModule;
struct lbProcedure;
#define ENTITY_KINDS \
@@ -30,7 +32,7 @@ String const entity_strings[] = {
#undef ENTITY_KIND
};
enum EntityFlag {
enum EntityFlag : u32 {
EntityFlag_Visited = 1<<0,
EntityFlag_Used = 1<<1,
EntityFlag_Using = 1<<2,
@@ -106,6 +108,9 @@ struct Entity {
Entity * using_parent;
Ast * using_expr;
lbModule * code_gen_module;
lbProcedure *code_gen_procedure;
isize order_in_src;
String deprecated_message;