|
|
| ExprSelect (const PosIdx &pos, std::unique_ptr< Expr > e, AttrPath attrPath, std::unique_ptr< Expr > def) |
|
| ExprSelect (const PosIdx &pos, std::unique_ptr< Expr > e, const PosIdx namePos, Symbol name) |
| JSON | toJSON (const SymbolTable &symbols) const override |
| void | eval (EvalState &state, Env &env, Value &v) override |
| void | accept (ExprVisitor &ev, std::unique_ptr< Expr > &ptr) override |
|
| Expr (const Expr &)=delete |
|
Expr & | operator= (const Expr &)=delete |
|
virtual Value * | maybeThunk (EvalState &state, Env &env) |
|
virtual void | setName (Symbol name) |
|
PosIdx | getPos () const |
|
template<typename E> |
| E & | cast () |
|
template<typename E> |
| E * | try_cast () |
|
|
static std::unique_ptr< Expr > | finalize (std::unique_ptr< Expr > parsed, Evaluator &es, const std::shared_ptr< const StaticEnv > &env) |
|
| Expr (Expr &&)=default |
|
Expr & | operator= (Expr &&)=default |
|
| Expr (const PosIdx pos) |
◆ accept()
| void nix::ExprSelect::accept |
( |
ExprVisitor & | ev, |
|
|
std::unique_ptr< Expr > & | ptr ) |
|
inlineoverridevirtual |
◆ eval()
◆ toJSON()
| JSON nix::ExprSelect::toJSON |
( |
const SymbolTable & | symbols | ) |
const |
|
overridevirtual |
◆ attrPath
| AttrPath nix::ExprSelect::attrPath |
The path of attributes being selected. e.g. bar.baz in foo.bar.baz.
◆ def
| std::unique_ptr<Expr> nix::ExprSelect::def |
A default value specified with or, if the selected attr doesn't exist. e.g. bix in foo.bar.baz or bix
| std::unique_ptr<Expr> nix::ExprSelect::e |
The expression attributes are being selected on. e.g. foo in foo.bar.baz.
The documentation for this struct was generated from the following files:
- lix/libexpr/nixexpr.hh
- lix/libexpr/eval.cc
- lix/libexpr/nixexpr.cc