mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
add doc comment justifying ExprInheritFrom
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
1cd87b7042
commit
f24e445bc0
1 changed files with 5 additions and 0 deletions
|
@ -135,6 +135,11 @@ struct ExprVar : Expr
|
||||||
COMMON_METHODS
|
COMMON_METHODS
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A pseudo-expression for the purpose of evaluating the `from` expression in `inherit (from)` syntax.
|
||||||
|
* Unlike normal variable references, the displacement is set during parsing, and always refers to
|
||||||
|
* `ExprAttrs::inheritFromExprs` (by itself or in `ExprLet`), whose values are put into their own `Env`.
|
||||||
|
*/
|
||||||
struct ExprInheritFrom : ExprVar
|
struct ExprInheritFrom : ExprVar
|
||||||
{
|
{
|
||||||
ExprInheritFrom(PosIdx pos, Displacement displ): ExprVar(pos, {})
|
ExprInheritFrom(PosIdx pos, Displacement displ): ExprVar(pos, {})
|
||||||
|
|
Loading…
Reference in a new issue