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

Public Member Functions

 ExprOpUpdate (Expr *e1, Expr *e2)
 ExprOpUpdate (const PosIdx &pos, Expr *e1, Expr *e2)
void show (const SymbolTable &symbols, std::ostream &str) const override
void bindVars (EvalState &es, const std::shared_ptr< const StaticEnv > &env) override
void eval (EvalState &state, Env &env, Value &v) override
PosIdx getPos () const override
virtual void evalForUpdate (EvalState &state, Env &env, UpdateQueue &q, std::string_view errorCtx) override
Public Member Functions inherited from nix::Expr
void eval (EvalState &state, Env &env, Value &v, std::string_view errorCtx)
virtual Value * maybeThunk (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
Expr * e1
Expr * e2

Additional Inherited Members

Static Public Attributes inherited from nix::Expr
static Counter nrExprs

Member Function Documentation

◆ bindVars()

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

Reimplemented from nix::Expr.

◆ eval()

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

Normal evaluation, implemented directly by all subclasses.

Reimplemented from nix::Expr.

◆ evalForUpdate()

void nix::ExprOpUpdate::evalForUpdate ( EvalState & state,
Env & env,
UpdateQueue & q,
std::string_view errorCtx )
overridevirtual

Only called when performing an attrset update: // or similar. Instead of writing to a Value &, this function writes to an UpdateQueue. This allows the expression to perform multiple updates in a delayed manner, gathering up all the updates before applying them.

Reimplemented from nix::Expr.

◆ getPos()

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

Reimplemented from nix::Expr.

◆ show()

void nix::ExprOpUpdate::show ( const SymbolTable & symbols,
std::ostream & str ) const
inlineoverridevirtual

Reimplemented from nix::Expr.


The documentation for this struct was generated from the following files:
  • libexpr/include/nix/expr/nixexpr.hh
  • libexpr/eval.cc