mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Remove bit_field keyword and parsing logic
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user