diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-09 10:56:49 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-09 10:56:49 +0800 |
commit | 93189befd74a25ee9069868b0bbf7601c151bb72 (patch) | |
tree | a07150e4480313e962344c63c0bf54fd88b4eb46 /src/hir/expr.hpp | |
parent | f6fef3d2f1d1d36fe57ca73df79cecaeb4ad04fc (diff) | |
download | mrust-93189befd74a25ee9069868b0bbf7601c151bb72.tar.gz |
HIR Typecheck - struct literals
Diffstat (limited to 'src/hir/expr.hpp')
-rw-r--r-- | src/hir/expr.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/expr.hpp b/src/hir/expr.hpp index 4862651d..d50191f4 100644 --- a/src/hir/expr.hpp +++ b/src/hir/expr.hpp @@ -487,6 +487,8 @@ struct ExprNode_StructLiteral: ::HIR::ExprNodeP m_base_value; t_values m_values; + ::std::vector< ::HIR::TypeRef> m_value_types; + ExprNode_StructLiteral(Span sp, ::HIR::GenericPath path, ::HIR::ExprNodeP base_value, t_values values): ExprNode( mv$(sp) ), m_path( mv$(path) ), @@ -494,6 +496,7 @@ struct ExprNode_StructLiteral: m_values( mv$(values) ) { // TODO: set m_res_type based on path? + // - Defer, because it requires binding ivars between m_path and m_res_type } NODE_METHODS(); |