|
| ExprSelect (const PosIdx &pos, Expr *e, AttrPath attrPath, Expr *def) |
|
| ExprSelect (const PosIdx &pos, Expr *e, Symbol name) |
|
PosIdx | getPos () const override |
|
Symbol | evalExceptFinalSelect (EvalState &state, Env &env, Value &attrs) |
|
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 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) |
|
|
static unsigned long | nrExprs = 0 |
|
◆ bindVars()
void nix::ExprSelect::bindVars |
( |
EvalState & | es, |
|
|
const std::shared_ptr< const StaticEnv > & | env ) |
|
overridevirtual |
◆ eval()
◆ evalExceptFinalSelect()
Evaluate the a.b.c
part of a.b.c.d
. This exists mostly for the purpose of :doc in the repl.
- Parameters
-
[out] | attrs | The attribute set that should contain the last attribute name (if it exists). |
- Returns
- The last attribute name in
attrPath
- Note
- This does not evaluate the final attribute, and does not fail if that's the only attribute that does not exist.
◆ getPos()
PosIdx nix::ExprSelect::getPos |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ show()
void nix::ExprSelect::show |
( |
const SymbolTable & | symbols, |
|
|
std::ostream & | str ) const |
|
overridevirtual |
The documentation for this struct was generated from the following files:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libexpr/nixexpr.hh
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libexpr/eval.cc
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libexpr/nixexpr.cc