mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Improve printing of ASTs
This commit is contained in:
parent
84a13dc576
commit
ecc2c8f464
3 changed files with 58 additions and 16 deletions
|
@ -280,7 +280,7 @@ struct ExprOpNot : Expr
|
|||
Expr##name(const Pos & pos, Expr * e1, Expr * e2) : pos(pos), e1(e1), e2(e2) { }; \
|
||||
void show(std::ostream & str) \
|
||||
{ \
|
||||
str << *e1 << " " s " " << *e2; \
|
||||
str << "(" << *e1 << " " s " " << *e2 << ")"; \
|
||||
} \
|
||||
void bindVars(const StaticEnv & env) \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue