diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-24 11:54:53 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-24 11:54:53 +0800 |
commit | 9f05fd7ffc8908ea5c266c40ec11a812fc6309d4 (patch) | |
tree | 438eb07c9ce0676d81fc18d86e71e63c38cbcc99 /src/hir/expr.hpp | |
parent | b236bbfb13db816666803778b79c22784088efb3 (diff) | |
download | mrust-9f05fd7ffc8908ea5c266c40ec11a812fc6309d4.tar.gz |
HIR Typecheck Expr - Provide a list of usable ivars to find_method
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r-- | src/hir/expr.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp index ba1066b9..0903ca5a 100644 --- a/src/hir/expr.hpp +++ b/src/hir/expr.hpp @@ -511,8 +511,13 @@ struct ExprNode_CallMethod: // - Set during typeck to the real path to the method ::HIR::Path m_method_path; + // - Cache of argument/return types ExprCallCache m_cache; + + // - List of possible traits (in-scope traits that contain this method) t_trait_list m_traits; + // - A pool of ivars to use for searching for trait impls + ::std::vector<unsigned int> m_trait_param_ivars; ExprNode_CallMethod(Span sp, ::HIR::ExprNodeP val, ::std::string method_name, ::HIR::PathParams params, ::std::vector< ::HIR::ExprNodeP> args): ExprNode( mv$(sp) ), |