mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11: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
|
@ -131,9 +131,10 @@ struct ExprAttrs : Expr
|
|||
{
|
||||
bool recursive;
|
||||
typedef std::pair<Expr *, Pos> Attr;
|
||||
typedef std::pair<VarRef, Pos> Inherited;
|
||||
typedef std::map<Symbol, Attr> Attrs;
|
||||
Attrs attrs;
|
||||
list<VarRef> inherited;
|
||||
list<Inherited> inherited;
|
||||
std::map<Symbol, Pos> attrNames; // used during parsing
|
||||
ExprAttrs() : recursive(false) { };
|
||||
COMMON_METHODS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue