Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::Pattern Struct Referenceabstract
Inheritance diagram for nix::Pattern:
nix::AttrsPattern nix::SimplePattern

Public Member Functions

 Pattern (Symbol name)
virtual std::shared_ptr< const StaticEnvbuildEnv (const StaticEnv *up)=0
virtual void accept (ExprVisitor &ev)=0
virtual Envmatch (ExprLambda &lambda, EvalState &state, Env &up, Value *arg, const PosIdx pos)=0
virtual void addBindingsToJSON (JSON &out, const SymbolTable &symbols) const =0

Public Attributes

Symbol name

Member Function Documentation

◆ match()

virtual Env & nix::Pattern::match ( ExprLambda & lambda,
EvalState & state,
Env & up,
Value * arg,
const PosIdx pos )
pure virtual

Implemented in nix::AttrsPattern.

Member Data Documentation

◆ name

Symbol nix::Pattern::name

The argument name of this particular lambda. Is a falsey symbol if there is no such argument.


The documentation for this struct was generated from the following file: