diff options
| author | gingerBill <bill@gingerbill.org> | 2020-03-24 14:29:54 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-03-24 14:29:54 +0000 |
| commit | 5cbb266ef5666c1df5d25d3afe23e4a777abd22b (patch) | |
| tree | 930b1a1ed3a3cc123183218af43635ef3053a030 /src/entity.cpp | |
| parent | dfc63dcb606146dcb7a4c1076e593c7991a84c9a (diff) | |
Change behaviour of `switch v in &value` to make `v` have by-reference semantics
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 9cc77360e..a64e767d6 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -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; |