mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
* Change the right-hand side of the ‘.’ operator from an attribute to
an attribute path. This is a refactoring to support default values.
This commit is contained in:
parent
5580f3817c
commit
2b9e29b1c8
4 changed files with 33 additions and 18 deletions
|
@ -122,8 +122,9 @@ struct ExprVar : Expr
|
|||
struct ExprSelect : Expr
|
||||
{
|
||||
Expr * e;
|
||||
Symbol name;
|
||||
ExprSelect(Expr * e, const Symbol & name) : e(e), name(name) { };
|
||||
AttrPath attrPath;
|
||||
ExprSelect(Expr * e, const AttrPath & attrPath) : e(e), attrPath(attrPath) { };
|
||||
ExprSelect(Expr * e, const Symbol & name) : e(e) { attrPath.push_back(name); };
|
||||
COMMON_METHODS
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue