chore(*): remove some old_type_checker dependencies
This commit is contained in:
parent
130b419371
commit
5d00936a8f
12 changed files with 6 additions and 16 deletions
|
|
@ -10,7 +10,6 @@ Author: Leonardo de Moura
|
|||
#include "runtime/compact.h"
|
||||
#include "util/timeit.h"
|
||||
#include "util/sexpr/option_declarations.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "kernel/replace_fn.h"
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/instantiate.h"
|
||||
|
|
@ -180,8 +179,8 @@ environment check_cmd(parser & p) {
|
|||
expr e; names ls;
|
||||
transient_cmd_scope cmd_scope(p);
|
||||
std::tie(e, ls) = parse_local_expr(p, "_check");
|
||||
old_type_checker tc(p.env(), true, false);
|
||||
expr type = tc.check(e, ls);
|
||||
type_context_old tc(p.env());
|
||||
expr type = tc.infer(e);
|
||||
if (is_synthetic_sorry(e) && (is_synthetic_sorry(type) || is_metavar(type))) {
|
||||
// do not show useless type-checking results such as ?? : ?M_1
|
||||
return p.env();
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Author: Leonardo de Moura
|
|||
#include "util/sexpr/option_declarations.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/annotation.h"
|
||||
#include "library/placeholder.h"
|
||||
#include "library/explicit.h"
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ Author: Leonardo de Moura
|
|||
#include "kernel/instantiate.h"
|
||||
#include "kernel/replace_fn.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/error_msgs.h"
|
||||
#include "library/scoped_ext.h"
|
||||
#include "library/annotation.h"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <algorithm>
|
||||
#include "kernel/replace_fn.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/locals.h"
|
||||
#include "library/placeholder.h"
|
||||
#include "library/module.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Author: Leonardo de Moura
|
|||
#include "util/lbool.h"
|
||||
#include "util/fresh_name.h"
|
||||
#include "util/name_set.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "library/scoped_ext.h"
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
|||
Author: Leonardo de Moura
|
||||
*/
|
||||
#include "kernel/declaration.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "kernel/replace_fn.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "kernel/for_each_fn.h"
|
||||
#include "library/scope_pos_info_provider.h"
|
||||
#include "library/trace.h"
|
||||
|
|
@ -172,7 +172,7 @@ class preprocess_fn {
|
|||
bool check(constant_info const & d, expr const & v) {
|
||||
bool memoize = true;
|
||||
bool non_meta_only = false;
|
||||
old_type_checker tc(m_env, memoize, non_meta_only);
|
||||
type_checker tc(m_env, memoize, non_meta_only);
|
||||
expr t = tc.check(v, d.get_lparams());
|
||||
if (!tc.is_def_eq(d.get_type(), t))
|
||||
throw exception("preprocess failed");
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ Author: Leonardo de Moura
|
|||
*/
|
||||
#include <algorithm>
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/aux_recursors.h"
|
||||
#include "library/util.h"
|
||||
#include "library/vm/vm.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Author: Leonardo de Moura
|
|||
#include <kernel/instantiate.h>
|
||||
#include "runtime/sstream.h"
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/util.h"
|
||||
#include "library/scoped_ext.h"
|
||||
#include "library/user_recursors.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ Author: Leonardo de Moura
|
|||
#include "kernel/instantiate.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/scope_pos_info_provider.h"
|
||||
#include "library/util.h"
|
||||
#include "library/module.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Author: Leonardo de Moura
|
|||
#include <string>
|
||||
#include "util/sexpr/option_declarations.h"
|
||||
#include "kernel/environment.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "library/io_state.h"
|
||||
#include "library/trace.h"
|
||||
#include "library/messages.h"
|
||||
|
|
@ -175,7 +175,7 @@ struct silent_ios_helper {
|
|||
};
|
||||
|
||||
MK_THREAD_LOCAL_GET_DEF(silent_ios_helper, get_silent_ios_helper);
|
||||
MK_THREAD_LOCAL_GET(old_type_checker, get_dummy_tc, get_dummy_env());
|
||||
MK_THREAD_LOCAL_GET(type_checker, get_dummy_tc, get_dummy_env());
|
||||
|
||||
scope_trace_silent::scope_trace_silent(bool flag) {
|
||||
m_old_value = g_silent;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ Author: Leonardo de Moura
|
|||
#include "util/fresh_name.h"
|
||||
#include "kernel/find_fn.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "kernel/type_checker.h"
|
||||
#include "kernel/abstract.h"
|
||||
#include "kernel/abstract_type_context.h"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ Authors: Leonardo de Moura, Sebastian Ullrich
|
|||
#include "runtime/sstream.h"
|
||||
#include "util/fresh_name.h"
|
||||
#include "kernel/instantiate.h"
|
||||
#include "kernel/old_type_checker.h"
|
||||
#include "library/profiling.h"
|
||||
#include "library/constants.h"
|
||||
#include "library/message_builder.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue