Nix  2.93.0-dev
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:
[legend]
Collaboration diagram for nix::Pattern:
[legend]

Public Member Functions

 Pattern (Symbol name)
 
virtual std::shared_ptr< const StaticEnvbuildEnv (const StaticEnv *up)=0
 
virtual void bindVars (Evaluator &es, const std::shared_ptr< const StaticEnv > &env)=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: