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

Public Member Functions

std::optional< Formals > getFormals () const
 ExprLambda (const PosTable &positions, std::pmr::polymorphic_allocator< char > &alloc, PosIdx pos, Symbol arg, const FormalsBuilder &formals, Expr *body)
 ExprLambda (PosIdx pos, Symbol arg, Expr *body)
 ExprLambda (const PosTable &positions, std::pmr::polymorphic_allocator< char > &alloc, PosIdx pos, const FormalsBuilder &formals, Expr *body)
void setName (Symbol name) override
std::string showNamePos (const EvalState &state) const
PosIdx getPos () const override
virtual void setDocComment (DocComment docComment) 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
void eval (EvalState &state, Env &env, Value &v, std::string_view errorCtx)
virtual Value * maybeThunk (EvalState &state, Env &env)
virtual void evalForUpdate (EvalState &state, Env &env, UpdateQueue &q, std::string_view errorCtx)
virtual void resetCursedOr ()
virtual void warnIfCursedOr (const SymbolTable &symbols, const PosTable &positions)

Public Attributes

PosIdx pos
Symbol name
Symbol arg
Expr * body
DocComment docComment

Additional Inherited Members

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

Member Function Documentation

◆ bindVars()

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

Reimplemented from nix::Expr.

◆ eval()

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

Normal evaluation, implemented directly by all subclasses.

Reimplemented from nix::Expr.

◆ getPos()

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

Reimplemented from nix::Expr.

◆ setDocComment()

void nix::ExprLambda::setDocComment ( DocComment docComment)
overridevirtual

Reimplemented from nix::Expr.

◆ setName()

void nix::ExprLambda::setName ( Symbol name)
overridevirtual

Reimplemented from nix::Expr.

◆ show()

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

Reimplemented from nix::Expr.


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