Add basic package support (no IR support yet)

This commit is contained in:
gingerBill
2018-05-26 23:12:55 +01:00
parent 5b6770f3d2
commit c067b90403
20 changed files with 698 additions and 818 deletions
+4 -1
View File
@@ -627,7 +627,10 @@ void check_switch_stmt(Checker *c, AstNode *node, u32 mod_flags) {
Token token = {};
token.pos = ast_node_token(ss->body).pos;
token.string = str_lit("true");
x.expr = ast_ident(c->curr_ast_file, token);
x.expr = gb_alloc_item(c->allocator, AstNode);
x.expr->kind = AstNode_Ident;
x.expr->Ident.token = token;
}
// NOTE(bill): Check for multiple defaults