1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

use the same bindings print for ExprAttrs and ExprLet

this also has the effect of sorting let bindings lexicographically
rather than by symbol creation order as was previously done, giving a
better canonicalization in the process.
This commit is contained in:
pennae 2024-01-27 16:33:34 +01:00
parent 1f542adb3e
commit 6c08fba533
3 changed files with 12 additions and 13 deletions

View file

@ -207,6 +207,8 @@ struct ExprAttrs : Expr
ExprAttrs() : recursive(false) { };
PosIdx getPos() const override { return pos; }
COMMON_METHODS
void showBindings(const SymbolTable & symbols, std::ostream & str) const;
};
struct ExprList : Expr