fix(frontends/lean): do not save identifier info
This commit is contained in:
parent
c1653a9fb4
commit
8e9f97e95e
2 changed files with 11 additions and 0 deletions
|
@ -429,7 +429,16 @@ struct info_manager::imp {
|
|||
m_line_data[l].insert(mk_symbol_info(c, s));
|
||||
}
|
||||
|
||||
static bool is_tactic_id(name const & id) {
|
||||
if (id.is_atomic())
|
||||
return id == get_tactic_name();
|
||||
else
|
||||
return is_tactic_id(id.get_prefix());
|
||||
}
|
||||
|
||||
void add_identifier_info(unsigned l, unsigned c, name const & full_id) {
|
||||
if (is_tactic_id(full_id))
|
||||
return;
|
||||
lock_guard<mutex> lc(m_mutex);
|
||||
if (m_block_new_info)
|
||||
return;
|
||||
|
|
|
@ -27,6 +27,8 @@ bool has_tactic_decls(environment const & env);
|
|||
*/
|
||||
tactic expr_to_tactic(environment const & env, elaborate_fn const & fn, expr const & e, pos_info_provider const * p);
|
||||
|
||||
name const & get_tactic_name();
|
||||
|
||||
expr const & get_tactic_expr_type();
|
||||
expr mk_tactic_expr(expr const & e);
|
||||
bool is_tactic_expr(expr const & e);
|
||||
|
|
Loading…
Reference in a new issue