mirror of
https://github.com/NixOS/nix.git
synced 2025-12-22 17:01:08 +01:00
libexpr: make ExprCall::args an std::optional
This commit is contained in:
parent
43fc6c314d
commit
484f40fc64
4 changed files with 10 additions and 7 deletions
|
|
@ -115,7 +115,7 @@ static void setDocPosition(const LexerState & lexerState, ExprLambda * lambda, P
|
|||
|
||||
static Expr * makeCall(Exprs & exprs, PosIdx pos, Expr * fn, Expr * arg) {
|
||||
if (auto e2 = dynamic_cast<ExprCall *>(fn)) {
|
||||
e2->args.push_back(arg);
|
||||
e2->args->push_back(arg);
|
||||
return fn;
|
||||
}
|
||||
return exprs.add<ExprCall>(pos, fn, {arg});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue