refactor(frontends/lean): move type_checker_ptr typedef to library
This commit is contained in:
parent
02de288a51
commit
caf0a4bf15
2 changed files with 5 additions and 2 deletions
|
@ -8,11 +8,11 @@ Author: Leonardo de Moura
|
||||||
#include "kernel/expr.h"
|
#include "kernel/expr.h"
|
||||||
#include "kernel/expr_sets.h"
|
#include "kernel/expr_sets.h"
|
||||||
#include "kernel/type_checker.h"
|
#include "kernel/type_checker.h"
|
||||||
|
#include "library/util.h"
|
||||||
#include "frontends/lean/local_decls.h"
|
#include "frontends/lean/local_decls.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
class parser;
|
class parser;
|
||||||
typedef std::unique_ptr<type_checker> type_checker_ptr;
|
|
||||||
|
|
||||||
/** \brief Parse optional '[persistent]' modifier.
|
/** \brief Parse optional '[persistent]' modifier.
|
||||||
return true if it is was found, and paremeter \c persistent to true.
|
return true if it is was found, and paremeter \c persistent to true.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,8 +6,11 @@ Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "kernel/environment.h"
|
#include "kernel/environment.h"
|
||||||
|
#include "kernel/type_checker.h"
|
||||||
|
|
||||||
namespace lean {
|
namespace lean {
|
||||||
|
typedef std::unique_ptr<type_checker> type_checker_ptr;
|
||||||
|
|
||||||
bool has_unit_decls(environment const & env);
|
bool has_unit_decls(environment const & env);
|
||||||
bool has_eq_decls(environment const & env);
|
bool has_eq_decls(environment const & env);
|
||||||
bool has_heq_decls(environment const & env);
|
bool has_heq_decls(environment const & env);
|
||||||
|
|
Loading…
Reference in a new issue