feat(kernel/formatter): print binder_info in simple formater
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
5d61d23bf6
commit
d5184a1751
1 changed files with 10 additions and 1 deletions
|
@ -66,8 +66,17 @@ struct print_expr_fn {
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_binder(char const * bname, expr const & e, context const & c) {
|
void print_binder(char const * bname, expr const & e, context const & c) {
|
||||||
out() << bname << " " << binder_name(e) << " : ";
|
out() << bname << " ";
|
||||||
|
if (binder_info(e).is_implicit())
|
||||||
|
out() << "{";
|
||||||
|
else if (binder_info(e).is_cast())
|
||||||
|
out() << "[";
|
||||||
|
out() << binder_name(e) << " : ";
|
||||||
print_child(binder_domain(e), c);
|
print_child(binder_domain(e), c);
|
||||||
|
if (binder_info(e).is_implicit())
|
||||||
|
out() << "}";
|
||||||
|
else if (binder_info(e).is_cast())
|
||||||
|
out() << "]";
|
||||||
out() << ", ";
|
out() << ", ";
|
||||||
print_child(binder_body(e), extend(c, binder_name(e), binder_domain(e)));
|
print_child(binder_body(e), extend(c, binder_name(e), binder_domain(e)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue