aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-03-10 02:20:32 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2022-03-11 22:30:10 +0000
commit91adfb8894b4b8183c2948712d56a97bb9d93d9f (patch)
tree4b0cef091af49d7cd3d3c39321b634d846aa7e8d /src/libexpr/value.hh
parentd5322698a2abbc6d141e1d244e17b0d226a2f18b (diff)
Create some type aliases for string Contexts
Diffstat (limited to 'src/libexpr/value.hh')
-rw-r--r--src/libexpr/value.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/value.hh b/src/libexpr/value.hh
index d0fa93e92..ee9cb832a 100644
--- a/src/libexpr/value.hh
+++ b/src/libexpr/value.hh
@@ -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()
{