Cleanup + little polymorph + ast_copy
This commit is contained in:
@@ -237,7 +237,7 @@ ast_struct(Token *pos, Ast_Scope *scope, Ast_Kind kind, Array<Ast_Decl *> polymo
|
||||
|
||||
CORE_Static Ast_Decl *
|
||||
ast_enum(Token *pos, Ast_Expr *typespec, Ast_Scope *scope) {
|
||||
AST_NEW(Decl, ENUM, pos, AST_DECL | AST_AGGREGATE);
|
||||
AST_NEW(Decl, ENUM, pos, AST_DECL);
|
||||
result->scope = scope;
|
||||
result->typespec = typespec;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user