mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
* Store position info for inherited attributes.
This commit is contained in:
parent
83d7b89660
commit
01e58adce0
4 changed files with 29 additions and 25 deletions
|
@ -377,8 +377,9 @@ binds
|
|||
foreach (vector<Symbol>::iterator, i, *$3) {
|
||||
if ($$->attrNames.find(*i) != $$->attrNames.end())
|
||||
dupAttr(*i, makeCurPos(@3, data), $$->attrNames[*i]);
|
||||
$$->inherited.push_back(*i);
|
||||
$$->attrNames[*i] = makeCurPos(@3, data);
|
||||
Pos pos = makeCurPos(@3, data);
|
||||
$$->inherited.push_back(ExprAttrs::Inherited(*i, pos));
|
||||
$$->attrNames[*i] = pos;
|
||||
}
|
||||
}
|
||||
| binds INHERIT '(' expr ')' ids ';'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue