diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-31 10:01:41 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-31 10:01:41 +0800 |
commit | fc7239e7271e879102272ea4d7e98f87f027ee84 (patch) | |
tree | 8134b59f26d6901b0eefc7709bb4ad40afda7f11 /src/ast/path.hpp | |
parent | ea043a43eeff8512396afc166ca1d0085873c57d (diff) | |
download | mrust-fc7239e7271e879102272ea4d7e98f87f027ee84.tar.gz |
All - Rough support for `union` (data structure present in all stages)
Diffstat (limited to 'src/ast/path.hpp')
-rw-r--r-- | src/ast/path.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ast/path.hpp b/src/ast/path.hpp index 3a00cdfd..479b26b8 100644 --- a/src/ast/path.hpp +++ b/src/ast/path.hpp @@ -21,6 +21,7 @@ class Module; class Trait; class Enum; class Struct; +class Union; class Static; } // namespace HIR @@ -32,6 +33,7 @@ class Module; class TypeAlias; class Enum; class Struct; +class Union; class Trait; class Static; class Function; @@ -47,13 +49,17 @@ TAGGED_UNION_EX(PathBinding, (), Unbound, ( const Module* module_; const ::HIR::Module* hir = nullptr; }), + (Struct, struct { + const Struct* struct_; + const ::HIR::Struct* hir = nullptr; + }), (Enum, struct { const Enum* enum_; const ::HIR::Enum* hir = nullptr; }), - (Struct, struct { - const Struct* struct_; - const ::HIR::Struct* hir = nullptr; + (Union, struct { + const Union* union_; + const ::HIR::Union* hir = nullptr; }), (Trait, struct { const Trait* trait_; |