mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Create some type aliases for string Contexts
This commit is contained in:
parent
d5322698a2
commit
91adfb8894
6 changed files with 10 additions and 8 deletions
|
@ -64,6 +64,8 @@ class JSONPlaceholder;
|
|||
|
||||
typedef int64_t NixInt;
|
||||
typedef double NixFloat;
|
||||
typedef std::pair<Path, std::string> NixStringContextElem;
|
||||
typedef std::vector<NixStringContextElem> NixStringContext;
|
||||
|
||||
/* External values must descend from ExternalValueBase, so that
|
||||
* type-agnostic nix functions (e.g. showType) can be implemented
|
||||
|
@ -368,7 +370,7 @@ public:
|
|||
non-trivial. */
|
||||
bool isTrivial() const;
|
||||
|
||||
std::vector<std::pair<Path, std::string>> getContext();
|
||||
NixStringContext getContext();
|
||||
|
||||
auto listItems()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue