summaryrefslogtreecommitdiff
path: root/src/ast/expr.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r--src/ast/expr.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp
index a6b58e03..2c9a1c35 100644
--- a/src/ast/expr.hpp
+++ b/src/ast/expr.hpp
@@ -417,7 +417,12 @@ struct ExprNode_Closure:
struct ExprNode_StructLiteral:
public ExprNode
{
- typedef ::std::vector< ::std::pair< ::std::string, unique_ptr<ExprNode> > > t_values;
+ struct Ent {
+ MetaItems attrs;
+ ::std::string name;
+ unique_ptr<ExprNode> value;
+ };
+ typedef ::std::vector<Ent> t_values;
Path m_path;
unique_ptr<ExprNode> m_base_value;
t_values m_values;