summaryrefslogtreecommitdiff
path: root/src/ast/ast.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-24 07:53:49 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-24 07:53:49 +0800
commit83c1c2ef2ad5ca242383cab3b862a291124dc2fb (patch)
tree3ab95bccc658e798c3bc9232d4926108a9029e64 /src/ast/ast.hpp
parent802c2c5d616d537ed8becea81c2ee6b48ae8f078 (diff)
downloadmrust-83c1c2ef2ad5ca242383cab3b862a291124dc2fb.tar.gz
Wildcard path resolution possibily working
Diffstat (limited to 'src/ast/ast.hpp')
-rw-r--r--src/ast/ast.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ast/ast.hpp b/src/ast/ast.hpp
index 60621036..f6834071 100644
--- a/src/ast/ast.hpp
+++ b/src/ast/ast.hpp
@@ -390,6 +390,10 @@ struct EnumVariant:
{
}
+ friend ::std::ostream& operator<<(::std::ostream& os, const EnumVariant& x) {
+ return os << "EnumVariant(" << x.m_name << "(" << x.m_sub_types << ") = " << x.m_value << ")";
+ }
+
SERIALISABLE_PROTOTYPES();
};
@@ -633,7 +637,7 @@ public:
_(Item<Path>, Use)
#undef _
};
- ItemRef find_item(const ::std::string& needle) const;
+ ItemRef find_item(const ::std::string& needle, bool ignore_private_wildcard = true) const;
::std::vector<MetaItem>& attrs() { return m_attrs; }
itemlist_fcn_t& functions() { return m_functions; }