diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-27 13:47:04 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-27 13:47:04 +0800 |
commit | 99b04898383e9d66c97e8f89504420263ba96c0b (patch) | |
tree | feeaa3370bd644c4889e5030415474846d27f1af /src/hir/hir.hpp | |
parent | 46b2f9450a438a597492e0015b735e625ee0cd3a (diff) | |
download | mrust-99b04898383e9d66c97e8f89504420263ba96c0b.tar.gz |
HIR Conv - Constant evaluation pass running (fully?)
Diffstat (limited to 'src/hir/hir.hpp')
-rw-r--r-- | src/hir/hir.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hir/hir.hpp b/src/hir/hir.hpp index 2887fd13..ef565c4e 100644 --- a/src/hir/hir.hpp +++ b/src/hir/hir.hpp @@ -199,6 +199,8 @@ public: ::HIR::TypeRef m_type; ::std::map< ::std::string, ::HIR::Function> m_methods; + + bool matches_type(const ::HIR::TypeRef& tr) const; }; class TraitImpl @@ -211,6 +213,8 @@ public: ::std::map< ::std::string, ::HIR::Function> m_methods; ::std::map< ::std::string, ::HIR::ExprPtr> m_constants; ::std::map< ::std::string, ::HIR::TypeRef> m_types; + + bool matches_type(const ::HIR::TypeRef& tr) const; }; class MarkerImpl @@ -220,6 +224,8 @@ public: ::HIR::PathParams m_trait_args; bool is_positive; ::HIR::TypeRef m_type; + + bool matches_type(const ::HIR::TypeRef& tr) const; }; class Crate |