summaryrefslogtreecommitdiff
path: root/src/ast/types.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-29 23:06:58 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-29 23:06:58 +0800
commit1563fdae306843e4165cb4d9249245ca0631e497 (patch)
tree20828f286dd0e0331dc1278d424cfeb27e73a9ad /src/ast/types.hpp
parent6e1790a5d9d67d95523b5553a1602aeb619a714b (diff)
downloadmrust-1563fdae306843e4165cb4d9249245ca0631e497.tar.gz
AST - Support printing AST types in a clean form
Diffstat (limited to 'src/ast/types.hpp')
-rw-r--r--src/ast/types.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/types.hpp b/src/ast/types.hpp
index 314ab828..820bcf27 100644
--- a/src/ast/types.hpp
+++ b/src/ast/types.hpp
@@ -266,6 +266,8 @@ public:
bool operator!=(const TypeRef& x) const { return ord(x) != OrdEqual; }
bool operator<(const TypeRef& x) const { return ord(x) == OrdLess; };
+ void print(::std::ostream& os, bool is_debug=false) const;
+
PrettyPrintType print_pretty() const { return PrettyPrintType(*this); }
friend class PrettyPrintType;