#include <nixexpr.hh>
Public Member Functions | |
ExprInheritFrom (PosIdx pos, Displacement displ) | |
void | bindVars (EvalState &es, const std::shared_ptr< const StaticEnv > &env) override |
![]() | |
ExprVar (Symbol name) | |
ExprVar (const PosIdx &pos, Symbol name) | |
Value * | maybeThunk (EvalState &state, Env &env) override |
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 |
![]() | |
virtual void | setName (Symbol name) |
virtual void | setDocComment (DocComment docComment) |
virtual void | resetCursedOr () |
virtual void | warnIfCursedOr (const SymbolTable &symbols, const PosTable &positions) |
Additional Inherited Members | |
![]() | |
PosIdx | pos |
Symbol | name |
ExprWith * | fromWith |
Level | level |
Displacement | displ = 0 |
![]() | |
static unsigned long | nrExprs = 0 |
A pseudo-expression for the purpose of evaluating the from
expression in inherit (from)
syntax. Unlike normal variable references, the displacement is set during parsing, and always refers to ExprAttrs::inheritFromExprs
(by itself or in ExprLet
), whose values are put into their own Env
.
|
overridevirtual |
Reimplemented from nix::Expr.