feat(frontends/lean/builtin_cmds): display "protected" for protected declarations in the print command
This commit is contained in:
parent
c53b96c8d3
commit
d8bd3c21b5
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ static void print_recursor_info(parser & p) {
|
|||
|
||||
bool print_constant(parser & p, char const * kind, declaration const & d) {
|
||||
io_state_stream out = p.regular_stream();
|
||||
if (is_protected(p.env(), d.get_name()))
|
||||
out << "protected ";
|
||||
out << kind << " " << d.get_name();
|
||||
print_attributes(p, d.get_name());
|
||||
out << " : " << d.get_type() << "\n";
|
||||
|
|
Loading…
Reference in a new issue