diff options
author | pennae <82953136+pennae@users.noreply.github.com> | 2022-03-10 00:32:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 00:32:34 +0000 |
commit | f2603e9c92947a0e0c01fc34e754270f46c63790 (patch) | |
tree | 895ae7325d6ddb9846b00069fccb05ba18d9b3f3 /src/libexpr/eval-cache.hh | |
parent | 417aaf4ff7ac1ca501c5a460775fa25d8e078c8a (diff) | |
parent | 4d98143914120d0163f5c50f30ce8a5289433f8f (diff) |
Merge branch 'master' into lto
Diffstat (limited to 'src/libexpr/eval-cache.hh')
-rw-r--r-- | src/libexpr/eval-cache.hh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libexpr/eval-cache.hh b/src/libexpr/eval-cache.hh index 43b34ebcb..40f1d4ffc 100644 --- a/src/libexpr/eval-cache.hh +++ b/src/libexpr/eval-cache.hh @@ -94,15 +94,17 @@ public: std::string getAttrPathStr(Symbol name) const; + Suggestions getSuggestionsForAttr(Symbol name); + std::shared_ptr<AttrCursor> maybeGetAttr(Symbol name, bool forceErrors = false); std::shared_ptr<AttrCursor> maybeGetAttr(std::string_view name); - std::shared_ptr<AttrCursor> getAttr(Symbol name, bool forceErrors = false); + ref<AttrCursor> getAttr(Symbol name, bool forceErrors = false); - std::shared_ptr<AttrCursor> getAttr(std::string_view name); + ref<AttrCursor> getAttr(std::string_view name); - std::shared_ptr<AttrCursor> findAlongAttrPath(const std::vector<Symbol> & attrPath, bool force = false); + OrSuggestions<ref<AttrCursor>> findAlongAttrPath(const std::vector<Symbol> & attrPath, bool force = false); std::string getString(); |