diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04 22:19:33 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-04 22:19:33 +0200 |
commit | bd9b1d97b42f307c8b595bb2de9b15bec1405b23 (patch) | |
tree | 48bd5555658fb2c734bf85ce8bd35eace826cb68 /src/libexpr/nixexpr.hh | |
parent | 8160f794e79a4a2a5269080b408d69fc93d7a305 (diff) |
Show position info in string concatenation / addition errors
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r-- | src/libexpr/nixexpr.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh index 9234e2970..d781d92ba 100644 --- a/src/libexpr/nixexpr.hh +++ b/src/libexpr/nixexpr.hh @@ -320,10 +320,11 @@ MakeBinOp(OpConcatLists, "++") struct ExprConcatStrings : Expr { + Pos pos; bool forceString; vector<Expr *> * es; - ExprConcatStrings(bool forceString, vector<Expr *> * es) - : forceString(forceString), es(es) { }; + ExprConcatStrings(const Pos & pos, bool forceString, vector<Expr *> * es) + : pos(pos), forceString(forceString), es(es) { }; COMMON_METHODS }; |