aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-10 16:58:21 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-10 16:58:21 -0700
commitfc748e2ccdf69dd02ae2e7e6e9913e2d98711129 (patch)
tree09c61380319db35dbdd2bf8a06bc6778bcd3aa10 /src/all_types.hpp
parent3ef2f7058b0bbe2c81f79f990398aaab2e5a7a2f (diff)
downloadzig-fc748e2ccdf69dd02ae2e7e6e9913e2d98711129.tar.gz
zig-fc748e2ccdf69dd02ae2e7e6e9913e2d98711129.zip
update enum parsing to new plan
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index 70ab294d1a..f899cfda35 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -451,8 +451,14 @@ struct AstNodeAsmExpr {
Expr resolved_expr;
};
+enum ContainerKind {
+ ContainerKindStruct,
+ ContainerKindEnum,
+};
+
struct AstNodeStructDecl {
Buf name;
+ ContainerKind kind;
ZigList<AstNode *> fields;
ZigList<AstNode *> fns;
ZigList<AstNode *> *directives;