/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Leonardo de Moura, Sebastian Ullrich */ #pragma once #include #include #include "kernel/environment.h" #include "util/sexpr/options.h" #include "frontends/lean/json.h" namespace lean { std::vector get_decl_completions(std::string const & pattern, environment const & env, options const & o); std::vector get_field_completions(name const & s, std::string const & pattern, environment const & env, options const & o); std::vector get_option_completions(std::string const & pattern, options const & opts); pair, std::string> parse_import(std::string s); std::vector get_import_completions(std::string const & pattern, std::string const & curr_dir, options const & opts); std::vector get_interactive_tactic_completions(std::string const & pattern, name const & tac_class, environment const & env, options const & opts); std::vector get_attribute_completions(std::string const & pattern, environment const & env, options const & opts); std::vector get_namespace_completions(std::string const & pattern, environment const & env, options const & opts); }