mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Refactor: rename ValuePrinter::totalListItemsPrinted
This commit is contained in:
parent
ce1dc87711
commit
bfc5416240
1 changed files with 5 additions and 5 deletions
|
@ -164,7 +164,7 @@ private:
|
|||
PrintOptions options;
|
||||
std::optional<ValuesSeen> seen;
|
||||
size_t totalAttrsPrinted = 0;
|
||||
size_t listItemsPrinted = 0;
|
||||
size_t totalListItemsPrinted = 0;
|
||||
std::string indent;
|
||||
|
||||
void increaseIndent()
|
||||
|
@ -408,8 +408,8 @@ private:
|
|||
for (auto elem : listItems) {
|
||||
printSpace(prettyPrint);
|
||||
|
||||
if (listItemsPrinted >= options.maxListItems) {
|
||||
printElided(listItems.size() - listItemsPrinted, "item", "items");
|
||||
if (totalListItemsPrinted >= options.maxListItems) {
|
||||
printElided(listItems.size() - totalListItemsPrinted, "item", "items");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -418,7 +418,7 @@ private:
|
|||
} else {
|
||||
printNullptr();
|
||||
}
|
||||
listItemsPrinted++;
|
||||
totalListItemsPrinted++;
|
||||
}
|
||||
|
||||
decreaseIndent();
|
||||
|
@ -592,7 +592,7 @@ public:
|
|||
void print(Value & v)
|
||||
{
|
||||
totalAttrsPrinted = 0;
|
||||
listItemsPrinted = 0;
|
||||
totalListItemsPrinted = 0;
|
||||
indent.clear();
|
||||
|
||||
if (options.trackRepeated) {
|
||||
|
|
Loading…
Reference in a new issue