diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-04 20:29:17 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-01-04 20:29:17 +0100 |
commit | 2b4c94482364c236b03f7f8b61aca7076ab4079d (patch) | |
tree | e125464a53427f36249824ca908080af7c027f39 /src/libexpr/attr-set.hh | |
parent | 17daec0b832205df781f6443292667c9aa617047 (diff) |
Remove EvalState::mkAttrs()
Diffstat (limited to 'src/libexpr/attr-set.hh')
-rw-r--r-- | src/libexpr/attr-set.hh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libexpr/attr-set.hh b/src/libexpr/attr-set.hh index 903289b69..82c348287 100644 --- a/src/libexpr/attr-set.hh +++ b/src/libexpr/attr-set.hh @@ -118,13 +118,14 @@ public: call finish(), which sorts the bindings. */ class BindingsBuilder { - EvalState & state; Bindings * bindings; public: + EvalState & state; + BindingsBuilder(EvalState & state, Bindings * bindings) - : state(state), bindings(bindings) + : bindings(bindings), state(state) { } void insert(Symbol name, Value * value, ptr<Pos> pos = ptr(&noPos)) @@ -146,6 +147,11 @@ public: bindings->sort(); return bindings; } + + Bindings * alreadySorted() + { + return bindings; + } }; } |