@@ -254,7 +254,6 @@ enum TldId {
254
254
TldIdVar,
255
255
TldIdFn,
256
256
TldIdContainer,
257
- TldIdTypeDef,
258
257
TldIdCompTime,
259
258
};
260
259
@@ -303,12 +302,6 @@ struct TldContainer {
303
302
TypeTableEntry *type_entry;
304
303
};
305
304
306
- struct TldTypeDef {
307
- Tld base;
308
-
309
- TypeTableEntry *type_entry;
310
- };
311
-
312
305
struct TldCompTime {
313
306
Tld base;
314
307
};
@@ -330,7 +323,6 @@ enum NodeType {
330
323
NodeTypeReturnExpr,
331
324
NodeTypeDefer,
332
325
NodeTypeVariableDeclaration,
333
- NodeTypeTypeDecl,
334
326
NodeTypeErrorValueDecl,
335
327
NodeTypeTestDecl,
336
328
NodeTypeBinOpExpr,
@@ -369,7 +361,6 @@ enum NodeType {
369
361
NodeTypeStructValueField,
370
362
NodeTypeArrayType,
371
363
NodeTypeErrorType,
372
- NodeTypeTypeLiteral,
373
364
NodeTypeVarLiteral,
374
365
NodeTypeTryExpr,
375
366
NodeTypeInlineExpr,
@@ -448,12 +439,6 @@ struct AstNodeVariableDeclaration {
448
439
AstNode *expr;
449
440
};
450
441
451
- struct AstNodeTypeDecl {
452
- VisibMod visib_mod;
453
- Buf *symbol;
454
- AstNode *child_type;
455
- };
456
-
457
442
struct AstNodeErrorValueDecl {
458
443
Buf *name;
459
444
@@ -790,9 +775,6 @@ struct AstNodeArrayType {
790
775
struct AstNodeErrorType {
791
776
};
792
777
793
- struct AstNodeTypeLiteral {
794
- };
795
-
796
778
struct AstNodeVarLiteral {
797
779
};
798
780
@@ -816,7 +798,6 @@ struct AstNode {
816
798
AstNodeReturnExpr return_expr;
817
799
AstNodeDefer defer;
818
800
AstNodeVariableDeclaration variable_declaration;
819
- AstNodeTypeDecl type_decl;
820
801
AstNodeErrorValueDecl error_value_decl;
821
802
AstNodeTestDecl test_decl;
822
803
AstNodeBinOpExpr bin_op_expr;
@@ -856,7 +837,6 @@ struct AstNode {
856
837
AstNodeUnreachableExpr unreachable_expr;
857
838
AstNodeArrayType array_type;
858
839
AstNodeErrorType error_type;
859
- AstNodeTypeLiteral type_literal;
860
840
AstNodeVarLiteral var_literal;
861
841
AstNodeInlineExpr inline_expr;
862
842
} data;
@@ -1026,11 +1006,6 @@ struct TypeTableEntryBoundFn {
1026
1006
TypeTableEntry *fn_type;
1027
1007
};
1028
1008
1029
- struct TypeTableEntryTypeDecl {
1030
- TypeTableEntry *child_type;
1031
- TypeTableEntry *canonical_type;
1032
- };
1033
-
1034
1009
enum TypeTableEntryId {
1035
1010
TypeTableEntryIdInvalid,
1036
1011
TypeTableEntryIdVar,
@@ -1054,11 +1029,11 @@ enum TypeTableEntryId {
1054
1029
TypeTableEntryIdEnumTag,
1055
1030
TypeTableEntryIdUnion,
1056
1031
TypeTableEntryIdFn,
1057
- TypeTableEntryIdTypeDecl,
1058
1032
TypeTableEntryIdNamespace,
1059
1033
TypeTableEntryIdBlock,
1060
1034
TypeTableEntryIdBoundFn,
1061
1035
TypeTableEntryIdArgTuple,
1036
+ TypeTableEntryIdOpaque,
1062
1037
};
1063
1038
1064
1039
struct TypeTableEntry {
@@ -1083,7 +1058,6 @@ struct TypeTableEntry {
1083
1058
TypeTableEntryEnumTag enum_tag;
1084
1059
TypeTableEntryUnion unionation;
1085
1060
TypeTableEntryFn fn;
1086
- TypeTableEntryTypeDecl type_decl;
1087
1061
TypeTableEntryBoundFn bound_fn;
1088
1062
} data;
1089
1063
0 commit comments