Add DECL_TYPE
This commit is contained in:
2
ast.cpp
2
ast.cpp
@@ -485,7 +485,7 @@ ast_const(Token *pos, Intern_String name, Ast_Expr *expr){
|
||||
|
||||
function Ast_Decl *
|
||||
ast_type(Token *pos, Intern_String name, Ast_Resolved_Type *type){
|
||||
AST_NEW(Decl, CONST, pos, AST_DECL);
|
||||
AST_NEW(Decl, TYPE, pos, AST_DECL);
|
||||
result->type = type_type;
|
||||
result->type_val = type;
|
||||
result->name = name;
|
||||
|
||||
Reference in New Issue
Block a user