aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-08 15:29:39 +0200
committerGitHub <noreply@github.com>2020-04-08 15:29:39 +0200
commit9ed097db7bc052964e87506527b49715e2ce9ff6 (patch)
treed88f2a6db23768f68444547761299e0df7e98634 /src/libexpr/nixexpr.hh
parent55cefd41d63368d4286568e2956afd535cb44018 (diff)
parentc34e96f7e0d53894f302134b2f90f83b20ffd22a (diff)
Merge pull request #3468 from Infinisil/functionArgsPositions
Make function arguments retain position info
Diffstat (limited to 'src/libexpr/nixexpr.hh')
-rw-r--r--src/libexpr/nixexpr.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index f7e9105a4..8c96de37c 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -209,9 +209,10 @@ struct ExprList : Expr
struct Formal
{
+ Pos pos;
Symbol name;
Expr * def;
- Formal(const Symbol & name, Expr * def) : name(name), def(def) { };
+ Formal(const Pos & pos, const Symbol & name, Expr * def) : pos(pos), name(name), def(def) { };
};
struct Formals