commit 33055d8f156b925960da869b286a703105859d06
parent 714600f9073b2b5a7ba8c770f6341232ec4ccaac
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 20 Mar 2022 10:14:54 +0100
Remove {ast_,}expression_type
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
2 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/include/ast.h b/include/ast.h
@@ -314,10 +314,6 @@ struct ast_expression_tuple {
struct ast_expression_tuple *next;
};
-struct ast_expression_type {
- struct ast_type *type;
-};
-
struct ast_expression_unarithm {
enum unarithm_operator op;
struct ast_expression *operand;
@@ -325,7 +321,7 @@ struct ast_expression_unarithm {
struct ast_expression {
struct location loc;
- enum expr_type type; // TODO: Rename me to "kind", and "_type" to "type"
+ enum expr_type type;
union {
struct ast_expression_access access;
struct ast_expression_alloc alloc;
@@ -352,7 +348,6 @@ struct ast_expression {
struct ast_expression_struct _struct;
struct ast_expression_switch _switch;
struct ast_expression_tuple tuple;
- struct ast_expression_type _type;
struct ast_expression_unarithm unarithm;
};
};
diff --git a/include/expr.h b/include/expr.h
@@ -318,10 +318,6 @@ struct expression_tuple {
struct expression_tuple *next;
};
-struct expression_type {
- const struct type *type;
-};
-
enum unarithm_operator {
UN_ADDRESS, // &
UN_BNOT, // ~
@@ -366,7 +362,6 @@ struct expression {
struct expression_switch _switch;
struct expression_struct _struct;
struct expression_slice slice;
- struct expression_type _type;
struct expression_tuple tuple;
struct expression_unarithm unarithm;
void *user;