|
Nix
2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
Public Member Functions | |
| ExprLambda (PosIdx pos, std::unique_ptr< Pattern > pattern, std::unique_ptr< Expr > body) | |
| void | setName (Symbol name) override |
| std::string | showNamePos (const EvalState &state) const |
| std::string | getName (SymbolTable const &symbols) const |
| std::string | getQuotedName (SymbolTable const &symbols) const |
Public Member Functions inherited from nix::Expr | |
| Expr (const Expr &)=delete | |
| Expr & | operator= (const Expr &)=delete |
| virtual JSON | toJSON (const SymbolTable &symbols) const |
| virtual void | bindVars (Evaluator &es, const std::shared_ptr< const StaticEnv > &env) |
| virtual void | eval (EvalState &state, Env &env, Value &v) |
| virtual Value * | maybeThunk (EvalState &state, Env &env) |
| PosIdx | getPos () const |
Public Attributes | |
| Symbol | name |
| std::unique_ptr< Pattern > | pattern |
| std::unique_ptr< Expr > | body |
Public Attributes inherited from nix::Expr | |
| PosIdx | pos |
Additional Inherited Members | |
Protected Member Functions inherited from nix::Expr | |
| Expr (Expr &&)=default | |
| Expr & | operator= (Expr &&)=default |
| Expr (const PosIdx pos) | |
|
inline |
Returns the name of the lambda, or "anonymous lambda" if it doesn't have one.
|
inline |
Returns the name of the lambda in single quotes, or "anonymous lambda" if it doesn't have one.
| Symbol nix::ExprLambda::name |
Name of the lambda. This is set if the lambda is defined in a let-expression or an attribute set, such that there is a name. Lambdas may have a falsey symbol as the name if they are anonymous