diff options
Diffstat (limited to 'src/ast/pattern.cpp')
-rw-r--r-- | src/ast/pattern.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ast/pattern.cpp b/src/ast/pattern.cpp index 1b189fa9..f2279a55 100644 --- a/src/ast/pattern.cpp +++ b/src/ast/pattern.cpp @@ -21,6 +21,9 @@ namespace AST { (MaybeBind, os << "?"; ), + (Box, + os << "box " << *ent.sub; + ), (Ref, os << "&" << (ent.mut ? "mut " : "") << *ent.sub; ), @@ -59,6 +62,9 @@ SERIALISE_TYPE(Pattern::, "Pattern", { ), (MaybeBind, ), + (Box, + s << e.sub; + ), (Ref, s << e.mut; s << e.sub; @@ -88,6 +94,9 @@ SERIALISE_TYPE(Pattern::, "Pattern", { _D(Any, ) _D(MaybeBind, ) + _D(Box, + s.item( ent.sub ); + ) _D(Ref, s.item( ent.mut ); s.item( ent.sub ); |