Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ExprAttrs::AttrDef Struct Reference
Collaboration diagram for nix::ExprAttrs::AttrDef:
[legend]

Public Types

enum class  Kind { Plain , Inherited , InheritedFrom }
 

Public Member Functions

 AttrDef (std::unique_ptr< Expr > e, const PosIdx &pos, Kind kind=Kind::Plain)
 
template<typename T >
const T & chooseByKind (const T &plain, const T &inherited, const T &inheritedFrom) const
 

Public Attributes

Kind kind
 
std::unique_ptr< Expre
 
PosIdx pos
 
Displacement displ
 

Member Enumeration Documentation

◆ Kind

enum class nix::ExprAttrs::AttrDef::Kind
strong
Enumerator
Plain 

attr = expr;

Inherited 

inherit attr1 attrn;

InheritedFrom 

inherit (expr) attr1 attrn;


The documentation for this struct was generated from the following file: