aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-10-13 14:07:00 +0100
committergingerBill <bill@gingerbill.org>2018-10-13 14:07:00 +0100
commitef2931d4a5f6e5a68ed339dcaf49840e1bcb8863 (patch)
tree275586c077d507eca5dd1db76458c6a43b4bfc35 /src/parser.cpp
parent2d4aa2be6d6f8f335c4239b9c2867729135e373f (diff)
Remove AstTypeType
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 8bbdc2ebc..4a563c086 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -77,7 +77,6 @@ Token ast_token(Ast *node) {
case Ast_UnionField:
return ast_token(node->UnionField.name);
- case Ast_TypeType: return node->TypeType.token;
case Ast_TypeidType: return node->TypeidType.token;
case Ast_HelperType: return node->HelperType.token;
case Ast_DistinctType: return node->DistinctType.token;
@@ -314,9 +313,6 @@ Ast *clone_ast(Ast *node) {
case Ast_TypeidType:
n->TypeidType.specialization = clone_ast(n->TypeidType.specialization);
break;
- case Ast_TypeType:
- n->TypeType.specialization = clone_ast(n->TypeType.specialization);
- break;
case Ast_HelperType:
n->HelperType.type = clone_ast(n->HelperType.type);
break;
@@ -839,13 +835,6 @@ Ast *ast_typeid_type(AstFile *f, Token token, Ast *specialization) {
return result;
}
-Ast *ast_type_type(AstFile *f, Token token, Ast *specialization) {
- Ast *result = alloc_ast_node(f, Ast_TypeType);
- result->TypeType.token = token;
- result->TypeType.specialization = specialization;
- return result;
-}
-
Ast *ast_helper_type(AstFile *f, Token token, Ast *type) {
Ast *result = alloc_ast_node(f, Ast_HelperType);
result->HelperType.token = token;
@@ -2740,8 +2729,7 @@ Ast *parse_proc_type(AstFile *f, Token proc_token) {
Ast *param = params->FieldList.list[i];
ast_node(field, Field, param);
if (field->type != nullptr) {
- if (field->type->kind == Ast_TypeType ||
- field->type->kind == Ast_PolyType) {
+ if (field->type->kind == Ast_PolyType) {
is_generic = true;
goto end;
}