fix(frontends/lean/pp): option 'pp.private_names' should also affect private declarations defined in the current file
This commit is contained in:
parent
d082fb7402
commit
0aa7e4a9f9
1 changed files with 2 additions and 1 deletions
|
@ -396,6 +396,7 @@ auto pretty_fn::pp_const(expr const & e) -> result {
|
||||||
name n = const_name(e);
|
name n = const_name(e);
|
||||||
if (!m_full_names) {
|
if (!m_full_names) {
|
||||||
if (auto it = is_aliased(n)) {
|
if (auto it = is_aliased(n)) {
|
||||||
|
if (!m_private_names || !hidden_to_user_name(m_env, n))
|
||||||
n = *it;
|
n = *it;
|
||||||
} else {
|
} else {
|
||||||
for (name const & ns : get_namespaces(m_env)) {
|
for (name const & ns : get_namespaces(m_env)) {
|
||||||
|
|
Loading…
Reference in a new issue