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

Public Member Functions

 ExprIf (const PosIdx &pos, Expr *cond, Expr *then, Expr *else_)
 
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
 
- 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

PosIdx pos
 
Exprcond
 
Exprthen
 
Exprelse_
 

Additional Inherited Members

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

Member Function Documentation

◆ bindVars()

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

Reimplemented from nix::Expr.

◆ eval()

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

Reimplemented from nix::Expr.

◆ getPos()

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

Reimplemented from nix::Expr.

◆ show()

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

Reimplemented from nix::Expr.


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