feat(library/blast/blast): add extra constructor
This commit is contained in:
parent
980eb95e0c
commit
45c02cb65c
2 changed files with 9 additions and 0 deletions
|
@ -604,6 +604,14 @@ tmp_type_context * blastenv::mk_tmp_type_context() {
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blast_tmp_type_context::blast_tmp_type_context(unsigned num_umeta, unsigned num_emeta) {
|
||||||
|
lean_assert(g_blastenv);
|
||||||
|
m_ctx = g_blastenv->mk_tmp_type_context();
|
||||||
|
m_ctx->clear();
|
||||||
|
m_ctx->set_next_uvar_idx(num_umeta);
|
||||||
|
m_ctx->set_next_mvar_idx(num_emeta);
|
||||||
|
}
|
||||||
|
|
||||||
blast_tmp_type_context::blast_tmp_type_context() {
|
blast_tmp_type_context::blast_tmp_type_context() {
|
||||||
lean_assert(g_blastenv);
|
lean_assert(g_blastenv);
|
||||||
m_ctx = g_blastenv->mk_tmp_type_context();
|
m_ctx = g_blastenv->mk_tmp_type_context();
|
||||||
|
|
|
@ -86,6 +86,7 @@ public:
|
||||||
class blast_tmp_type_context {
|
class blast_tmp_type_context {
|
||||||
tmp_type_context * m_ctx;
|
tmp_type_context * m_ctx;
|
||||||
public:
|
public:
|
||||||
|
blast_tmp_type_context(unsigned num_umeta, unsigned num_emeta);
|
||||||
blast_tmp_type_context();
|
blast_tmp_type_context();
|
||||||
~blast_tmp_type_context();
|
~blast_tmp_type_context();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue