Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ExprAttrs Struct Reference
Inheritance diagram for nix::ExprAttrs:
nix::Expr

Classes

struct  AttrDef
 
struct  DynamicAttrDef
 

Public Types

typedef std::map< Symbol, AttrDefAttrDefs
 
typedef std::vector< DynamicAttrDefDynamicAttrDefs
 

Public Member Functions

 ExprAttrs (const PosIdx &pos)
 
PosIdx getPos () const override
 
void show (const SymbolTable &symbols, std::ostream &str) const override
 
void eval (EvalState &state, Env &env, Value &v) override
 
void bindVars (EvalState &es, const std::shared_ptr< const StaticEnv > &env) override
 
std::shared_ptr< const StaticEnvbindInheritSources (EvalState &es, const std::shared_ptr< const StaticEnv > &env)
 
EnvbuildInheritFromEnv (EvalState &state, Env &up)
 
void showBindings (const SymbolTable &symbols, std::ostream &str) const
 
- Public Member Functions inherited from nix::Expr
virtual ValuemaybeThunk (EvalState &state, Env &env)
 
virtual void setName (Symbol name)
 
virtual void setDocComment (DocComment docComment)
 
virtual void resetCursedOr ()
 
virtual void warnIfCursedOr (const SymbolTable &symbols, const PosTable &positions)
 

Public Attributes

bool recursive
 
PosIdx pos
 
AttrDefs attrs
 
std::unique_ptr< std::vector< Expr * > > inheritFromExprs
 
DynamicAttrDefs dynamicAttrs
 

Additional Inherited Members

- Static Public Attributes inherited from nix::Expr
static unsigned long nrExprs = 0
 

Member Function Documentation

◆ bindVars()

void nix::ExprAttrs::bindVars ( EvalState & es,
const std::shared_ptr< const StaticEnv > & env )
overridevirtual

Reimplemented from nix::Expr.

◆ eval()

void nix::ExprAttrs::eval ( EvalState & state,
Env & env,
Value & v )
overridevirtual

Reimplemented from nix::Expr.

◆ getPos()

PosIdx nix::ExprAttrs::getPos ( ) const
inlineoverridevirtual

Reimplemented from nix::Expr.

◆ show()

void nix::ExprAttrs::show ( const SymbolTable & symbols,
std::ostream & str ) const
overridevirtual

Reimplemented from nix::Expr.


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