1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Generialize showType

This commit is contained in:
John Ericson 2023-06-21 16:06:16 -04:00
parent 559fd7ffe7
commit e8067daf09
2 changed files with 16 additions and 12 deletions

View file

@ -704,8 +704,11 @@ struct DebugTraceStacker {
/**
* @return A string representing the type of the value `v`.
*
* @param withArticle Whether to begin with an english article, e.g. "an
* integer" vs "integer".
*/
std::string_view showType(ValueType type);
std::string_view showType(ValueType type, bool withArticle = true);
std::string showType(const Value & v);
/**