summaryrefslogtreecommitdiff
path: root/src/hir/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-06-06 22:27:21 +0800
committerJohn Hodge <tpg@mutabah.net>2016-06-06 22:27:21 +0800
commit15afd5d1dfe97009b856e96f643d8dd898625932 (patch)
tree77e66942461de4e630347e0ee510ba5792f4582b /src/hir/expr.hpp
parent7317c0a66cbd76ff2fc061561de4f5867060352c (diff)
downloadmrust-15afd5d1dfe97009b856e96f643d8dd898625932.tar.gz
HIR Typecheck - Expand associated types returned from methods
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r--src/hir/expr.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp
index 65cf3735..e5de1eff 100644
--- a/src/hir/expr.hpp
+++ b/src/hir/expr.hpp
@@ -299,6 +299,9 @@ struct ExprNode_CallPath:
::HIR::Path m_path;
::std::vector<ExprNodeP> m_args;
+ // - Cache for typeck
+ ::std::vector< ::HIR::TypeRef> m_arg_types;
+
ExprNode_CallPath(Span sp, ::HIR::Path path, ::std::vector< ::HIR::ExprNodeP> args):
ExprNode(mv$(sp)),
m_path( mv$(path) ),
@@ -331,6 +334,7 @@ struct ExprNode_CallMethod:
// - Set during typeck to the real path to the method
::HIR::Path m_method_path;
+ ::std::vector< ::HIR::TypeRef> m_arg_types;
ExprNode_CallMethod(Span sp, ::HIR::ExprNodeP val, ::std::string method_name, ::HIR::PathParams params, ::std::vector< ::HIR::ExprNodeP> args):
ExprNode( mv$(sp) ),