diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-03 10:57:08 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-03 10:57:08 +0800 |
commit | 54e40bb2c9b26b7bd588fabc1a5016a446f5436c (patch) | |
tree | 226f14f2d05e59b8d842083a11a4c9fea13c3af0 /src/hir/expr.hpp | |
parent | 00571eb3e21568b5a0ff06cccb8c573d0e38d09a (diff) | |
download | mrust-54e40bb2c9b26b7bd588fabc1a5016a446f5436c.tar.gz |
HIR Typecheck - CS - Method trait list
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r-- | src/hir/expr.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp index 36fd8bef..300414b4 100644 --- a/src/hir/expr.hpp +++ b/src/hir/expr.hpp @@ -9,6 +9,8 @@ namespace HIR { +typedef ::std::vector< ::std::pair<const ::HIR::SimplePath*,const ::HIR::Trait*> > t_trait_list; + class GenericParams; class ExprVisitor; @@ -44,7 +46,7 @@ struct ExprNode_Block: ::std::vector< ExprNodeP > m_nodes; ::HIR::SimplePath m_local_mod; - ::std::vector< ::std::pair<const ::HIR::SimplePath*,const ::HIR::Trait*> > m_traits; + t_trait_list m_traits; ExprNode_Block(Span sp): ExprNode(mv$(sp)), @@ -431,6 +433,7 @@ struct ExprNode_CallMethod: // - Set during typeck to the real path to the method ::HIR::Path m_method_path; ExprCallCache m_cache; + t_trait_list m_traits; ExprNode_CallMethod(Span sp, ::HIR::ExprNodeP val, ::std::string method_name, ::HIR::PathParams params, ::std::vector< ::HIR::ExprNodeP> args): ExprNode( mv$(sp) ), |