Remove bit_field keyword and parsing logic

This commit is contained in:
gingerBill
2021-02-23 15:29:54 +00:00
parent fe33a64b2e
commit 28f279329d
12 changed files with 1 additions and 165 deletions
-9
View File
@@ -713,15 +713,6 @@ Enum_Type :: struct {
is_using: bool,
}
Bit_Field_Type :: struct {
using node: Expr,
tok_pos: tokenizer.Pos,
align: ^Expr,
open: tokenizer.Pos,
fields: []^Field_Value, // Field_Value with ':' rather than '='
close: tokenizer.Pos,
}
Bit_Set_Type :: struct {
using node: Expr,
tok_pos: tokenizer.Pos,
-2
View File
@@ -269,8 +269,6 @@ clone_node :: proc(node: ^Node) -> ^Node {
case Enum_Type:
r.base_type = clone(r.base_type);
r.fields = clone(r.fields);
case Bit_Field_Type:
r.fields = clone(r.fields);
case Bit_Set_Type:
r.elem = clone(r.elem);
r.underlying = clone(r.underlying);
-7
View File
@@ -387,13 +387,6 @@ walk :: proc(v: ^Visitor, node: ^Node) {
walk(v, n.base_type);
}
walk_expr_list(v, n.fields);
case Bit_Field_Type:
if n.align != nil {
walk(v, n.align);
}
for x in n.fields {
walk(v, x);
}
case Bit_Set_Type:
walk(v, n.elem);
if n.underlying != nil {