feat(kernel/formatter): prefix metavars with '?' and local vars with '!' in the simple formatter
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
f903626b78
commit
277e0e6d49
1 changed files with 5 additions and 2 deletions
|
@ -88,8 +88,11 @@ struct print_expr_fn {
|
|||
|
||||
void print(expr const & a, context const & c) {
|
||||
switch (a.kind()) {
|
||||
case expr_kind::Meta: case expr_kind::Local:
|
||||
out() << mlocal_name(a);
|
||||
case expr_kind::Meta:
|
||||
out() << "?" << mlocal_name(a);
|
||||
break;
|
||||
case expr_kind::Local:
|
||||
out() << "!" << mlocal_name(a);
|
||||
break;
|
||||
case expr_kind::Var: {
|
||||
auto e = find(c, var_idx(a));
|
||||
|
|
Loading…
Reference in a new issue