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:
parent
1f542adb3e
commit
6c08fba533
3 changed files with 12 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue