summaryrefslogtreecommitdiff
path: root/src/hir/hir.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r--src/hir/hir.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp
index fed2e577..be043e22 100644
--- a/src/hir/hir.hpp
+++ b/src/hir/hir.hpp
@@ -204,6 +204,21 @@ public:
TraitMarkings m_markings;
};
+class Union
+{
+public:
+ enum class Repr
+ {
+ Rust,
+ C,
+ };
+
+ GenericParams m_params;
+ Repr m_repr;
+ t_struct_fields m_variants;
+
+ TraitMarkings m_markings;
+};
struct AssociatedType
{
@@ -262,6 +277,7 @@ TAGGED_UNION(TypeItem, Import,
(TypeAlias, TypeAlias), // NOTE: These don't introduce new values
(Enum, Enum),
(Struct, Struct),
+ (Union, Union),
(Trait, Trait)
);
TAGGED_UNION(ValueItem, Import,