diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2022-04-19 22:27:21 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2022-04-19 22:27:21 +0000 |
commit | 55caef36ed1cee2e924c82cf49b3ceb17bdde910 (patch) | |
tree | 78af86998140b242713a2c54f35bad45b4cc4449 /src/libexpr/eval-cache.hh | |
parent | 13c669105ca93d28ca1a78321f07fd4ddbb445b1 (diff) | |
parent | ee57f91413c9d01f1027eccbe01f7706c94919ac (diff) |
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index c9a9bf471..b0709ebc2 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -33,7 +33,7 @@ public: EvalState & state, RootLoader rootLoader); - std::shared_ptr<AttrCursor> getRoot(); + ref<AttrCursor> getRoot(); }; enum AttrType { @@ -104,6 +104,8 @@ public: ref<AttrCursor> getAttr(std::string_view name); + /* Get an attribute along a chain of attrsets. Note that this does + not auto-call functors or functions. */ OrSuggestions<ref<AttrCursor>> findAlongAttrPath(const std::vector<Symbol> & attrPath, bool force = false); std::string getString(); |