From d8bd3c21b56e853c56bc1bc272210c6f375fcc1c Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Mon, 18 May 2015 17:19:34 -0700 Subject: [PATCH] feat(frontends/lean/builtin_cmds): display "protected" for protected declarations in the print command --- src/frontends/lean/builtin_cmds.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/lean/builtin_cmds.cpp b/src/frontends/lean/builtin_cmds.cpp index 676891af9..beb8947d9 100644 --- a/src/frontends/lean/builtin_cmds.cpp +++ b/src/frontends/lean/builtin_cmds.cpp @@ -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";