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

Public Member Functions

 ExprCall (const PosIdx &pos, Expr *fun, std::pmr::vector< Expr * > &&args)
 ExprCall (const PosIdx &pos, Expr *fun, std::pmr::vector< Expr * > &&args, PosIdx &&cursedOrEndPos)
PosIdx getPos () const override
virtual void resetCursedOr () override
virtual void warnIfCursedOr (const SymbolTable &symbols, const PosTable &positions) override
void moveDataToAllocator (std::pmr::polymorphic_allocator< char > &alloc)
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 setName (Symbol name)
virtual void setDocComment (DocComment docComment)

Public Attributes

Expr * fun
std::optional< std::pmr::vector< Expr * > > args
PosIdx pos
std::optional< PosIdx > cursedOrEndPos

Additional Inherited Members

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

Member Function Documentation

◆ bindVars()

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

Reimplemented from nix::Expr.

◆ eval()

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

Normal evaluation, implemented directly by all subclasses.

Reimplemented from nix::Expr.

◆ getPos()

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

Reimplemented from nix::Expr.

◆ resetCursedOr()

void nix::ExprCall::resetCursedOr ( )
overridevirtual

Reimplemented from nix::Expr.

◆ show()

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

Reimplemented from nix::Expr.

◆ warnIfCursedOr()

void nix::ExprCall::warnIfCursedOr ( const SymbolTable & symbols,
const PosTable & positions )
overridevirtual

Reimplemented from nix::Expr.

Member Data Documentation

◆ args

std::optional<std::pmr::vector<Expr *> > nix::ExprCall::args

args will never be null. See comment on ExprAttrs::AttrDefs below.


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