Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::ParserState Struct Reference

Public Member Functions

void dupAttr (const AttrPath &attrPath, const PosIdx pos, const PosIdx prevPos)
 
void dupAttr (Symbol attr, const PosIdx pos, const PosIdx prevPos)
 
void addAttr (ExprAttrs *attrs, AttrPath &&attrPath, const ParserLocation &loc, Expr *e, const ParserLocation &exprLoc)
 
void addAttr (ExprAttrs *attrs, AttrPath &attrPath, const Symbol &symbol, ExprAttrs::AttrDef &&def)
 
FormalsvalidateFormals (Formals *formals, PosIdx pos=noPos, Symbol arg={})
 
ExprstripIndentation (const PosIdx pos, std::vector< std::pair< PosIdx, std::variant< Expr *, StringToken > > > &&es)
 
PosIdx at (const ParserLocation &loc)
 

Public Attributes

const LexerStatelexerState
 
SymbolTablesymbols
 
PosTablepositions
 
Exprresult
 
SourcePath basePath
 
PosTable::Origin origin
 
const ref< SourceAccessorrootFS
 
const Expr::AstSymbolss
 
const EvalSettingssettings
 

Member Function Documentation

◆ addAttr()

void nix::ParserState::addAttr ( ExprAttrs * attrs,
AttrPath & attrPath,
const Symbol & symbol,
ExprAttrs::AttrDef && def )
inline

Precondition: attrPath is used for error messages and should already contain symbol as its last element.


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