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

Public Member Functions

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

Public Attributes

const LexerState & lexerState
Exprs & exprs
SymbolTable & symbols
PosTable & positions
Expr * result
SourcePath basePath
PosTable::Origin origin
const ref< SourceAccessor > rootFS
const EvalSettings & settings

Static Public Attributes

static constexpr Expr::AstSymbols s = StaticEvalSymbols::create().exprSymbols

Member Function Documentation

◆ addAttr()

void nix::ParserState::addAttr ( ExprAttrs * attrs,
AttrSelectionPath & 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: