diff options
Diffstat (limited to 'third_party/nix/src/libexpr/attr-set.hh')
-rw-r--r-- | third_party/nix/src/libexpr/attr-set.hh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/third_party/nix/src/libexpr/attr-set.hh b/third_party/nix/src/libexpr/attr-set.hh index 683b3e4bd75b..b918bf30ffd2 100644 --- a/third_party/nix/src/libexpr/attr-set.hh +++ b/third_party/nix/src/libexpr/attr-set.hh @@ -55,8 +55,12 @@ class Bindings { iterator begin(); iterator end(); - // TODO: can callers just iterate? - [[deprecated]] std::vector<const Attr*> lexicographicOrder(); + // Returns the elements of the attribute set as a vector, sorted + // lexicographically by keys. + // + // This is used primarily for builtins that have guaranteed + // ordering, such as `attrNames` or `attrValues`. + std::vector<const Attr*> SortedByKeys(); // oh no friend class EvalState; |