mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
remove Symbol::empty
the only use of this function is to determine whether a lambda has a non-set formal, but this use is arguably better served by Symbol::set and using a non-Symbol instead of an empty symbol in the parser when no such formal is present.
This commit is contained in:
parent
90b5c0a1a6
commit
ff0fd91ed2
5 changed files with 8 additions and 13 deletions
|
@ -139,7 +139,7 @@ static void printValueAsXML(EvalState & state, bool strict, bool location,
|
|||
|
||||
if (v.lambda.fun->hasFormals()) {
|
||||
XMLAttrs attrs;
|
||||
if (!v.lambda.fun->arg.empty()) attrs["name"] = v.lambda.fun->arg;
|
||||
if (v.lambda.fun->arg.set()) attrs["name"] = v.lambda.fun->arg;
|
||||
if (v.lambda.fun->formals->ellipsis) attrs["ellipsis"] = "1";
|
||||
XMLOpenElement _(doc, "attrspat", attrs);
|
||||
for (auto & i : v.lambda.fun->formals->lexicographicOrder())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue