diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-17 11:52:35 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-17 11:52:35 +0800 |
commit | 6c571b2d3f99f5e209986dc00710d3fb86caafad (patch) | |
tree | 6798d420f469432d0c722ca268592070252fa5c9 /src/ast/ast.cpp | |
parent | 6b506092f331a26328a45c00565336ac810b7559 (diff) | |
download | mrust-6c571b2d3f99f5e209986dc00710d3fb86caafad.tar.gz |
Replace Enum variant inner type
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 870d4eff..3eb646e5 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -531,6 +531,12 @@ SERIALISE_TYPE(Trait::, "AST_Trait", { s.item(m_functions);
})
+SERIALISE_TYPE_A(EnumVariant::, "AST_EnumVariant", {
+ s.item(m_name);
+ s.item(m_sub_types);
+ s.item(m_value);
+})
+
SERIALISE_TYPE(Enum::, "AST_Enum", {
s << m_params;
s << m_variants;
|