Public 成员函数 | |
| Impl (std::string root) | |
| std::string | canonicalUri (const std::string &uri) const |
| std::string | identity (std::string_view uri) const |
| const std::string * | sourceFor (std::string_view uri) const |
| void | update (const std::string &uri, std::string source) |
| void | close (const std::string &uri) |
| std::vector< script::ScriptDiagnostic > | diagnostics (std::string_view uri) const |
| std::vector< script::ScriptCompletion > | complete (std::string_view uri, lsp::Position position) const |
| std::optional< script::ScriptHover > | hover (std::string_view uri, lsp::Position position) const |
| std::optional< LanguageSignatureHelp > | signatureHelp (std::string_view uri, lsp::Position position) const |
| std::filesystem::path | pathForCanonical (std::string_view canonical) const |
| void | indexProject () |
Public 属性 | |
| std::string | root_ |
| eve::Runtime | runtime_ |
| lsp::WorkspaceIndex | index_ |
| std::unordered_map< std::string, std::string > | documents_ |
| std::unordered_map< std::string, std::string > | canonical_ |
| std::vector< std::string > | knownModules_ |
| std::vector< std::string > | activeModules_ |
| std::unordered_map< std::string, std::string > | slotClass_ |
| bool | shutdown_ = false |
详细描述
在文件 LanguageServer.cpp 第 608 行定义.
构造及析构函数说明
◆ Impl()
|
inlineexplicit |
成员函数说明
◆ canonicalUri()
|
inline |
在文件 LanguageServer.cpp 第 629 行定义.
引用了 error, path, relative, root_ , 以及 uri.
被这些函数引用 identity() , 以及 update().
◆ close()
|
inline |
◆ complete()
|
inline |
在文件 LanguageServer.cpp 第 693 行定义.
引用了 a, activeModules_, b, eve::script::ScriptCompiler::bindings(), cls, eve::script::ScriptCompiler::completions(), current, cursor, eve::script::BindingContractRegistry::hasScriptClass(), identity(), eve::script::ScriptCompiler::metadata(), name, offset, position, runtime_, eve::Runtime::scriptCompiler(), slotClass_, eve::script::BindingContractRegistry::snapshot(), source, sourceFor(), unit , 以及 uri.
◆ diagnostics()
|
inline |
◆ hover()
|
inline |
在文件 LanguageServer.cpp 第 781 行定义.
引用了 cursor, eve::dev::lsp::WorkspaceIndex::definition(), eve::script::ScriptCompiler::hover(), hover(), identity(), index_, position, runtime_, eve::Runtime::scriptCompiler(), slotClass_, source, sourceFor(), eve::script::ScriptHover::symbol, uri , 以及 value.
被这些函数引用 hover().
◆ identity()
|
inline |
在文件 LanguageServer.cpp 第 640 行定义.
引用了 canonical_, canonicalUri(), found, owned , 以及 uri.
被这些函数引用 complete(), diagnostics() , 以及 hover().
◆ indexProject()
|
inline |
在文件 LanguageServer.cpp 第 839 行定义.
引用了 end, error, eve::dev::LanguageServer::fileUriFromPath(), index_, input, name, relative, root_, source, eve::dev::lsp::WorkspaceIndex::update() , 以及 uri.
被这些函数引用 Impl().
◆ pathForCanonical()
|
inline |
◆ signatureHelp()
|
inline |
在文件 LanguageServer.cpp 第 804 行定义.
引用了 eve::dev::LanguageSignatureHelp::activeParameter, eve::script::ScriptCompiler::bindings(), current, eve::dev::LanguageSignatureHelp::documentation, eve::script::BindingContract::documentationId, eve::script::BindingContractRegistry::findMethod(), eve::dev::LanguageSignatureHelp::label, eve::script::BindingContract::method, offset, eve::script::BindingContract::parameters, eve::dev::LanguageSignatureHelp::parameters, position, eve::script::BindingContract::returnType, runtime_, eve::script::BindingContract::scriptClass, eve::Runtime::scriptCompiler(), source, sourceFor() , 以及 uri.
◆ sourceFor()
|
inline |
在文件 LanguageServer.cpp 第 646 行定义.
引用了 documents_, found , 以及 uri.
被这些函数引用 complete(), hover() , 以及 signatureHelp().
◆ update()
|
inline |
在文件 LanguageServer.cpp 第 651 行定义.
引用了 canonical_, canonicalUri(), eve::Runtime::compileSource(), documents_, index_, runtime_, source, eve::dev::lsp::WorkspaceIndex::update() , 以及 uri.
类成员变量说明
◆ activeModules_
| std::vector<std::string> eve::dev::LanguageServer::Impl::activeModules_ |
在文件 LanguageServer.cpp 第 865 行定义.
被这些函数引用 complete(), diagnostics() , 以及 Impl().
◆ canonical_
| std::unordered_map<std::string, std::string> eve::dev::LanguageServer::Impl::canonical_ |
在文件 LanguageServer.cpp 第 863 行定义.
被这些函数引用 close(), identity() , 以及 update().
◆ documents_
| std::unordered_map<std::string, std::string> eve::dev::LanguageServer::Impl::documents_ |
在文件 LanguageServer.cpp 第 862 行定义.
被这些函数引用 close(), diagnostics(), sourceFor() , 以及 update().
◆ index_
| lsp::WorkspaceIndex eve::dev::LanguageServer::Impl::index_ |
在文件 LanguageServer.cpp 第 861 行定义.
被这些函数引用 close(), hover(), indexProject() , 以及 update().
◆ knownModules_
| std::vector<std::string> eve::dev::LanguageServer::Impl::knownModules_ |
在文件 LanguageServer.cpp 第 864 行定义.
被这些函数引用 diagnostics() , 以及 Impl().
◆ root_
| std::string eve::dev::LanguageServer::Impl::root_ |
在文件 LanguageServer.cpp 第 859 行定义.
被这些函数引用 canonicalUri(), Impl(), indexProject() , 以及 pathForCanonical().
◆ runtime_
| eve::Runtime eve::dev::LanguageServer::Impl::runtime_ |
在文件 LanguageServer.cpp 第 860 行定义.
被这些函数引用 complete(), diagnostics(), hover(), Impl(), signatureHelp() , 以及 update().
◆ shutdown_
| bool eve::dev::LanguageServer::Impl::shutdown_ = false |
在文件 LanguageServer.cpp 第 867 行定义.
◆ slotClass_
| std::unordered_map<std::string, std::string> eve::dev::LanguageServer::Impl::slotClass_ |
在文件 LanguageServer.cpp 第 866 行定义.
被这些函数引用 complete(), hover() , 以及 Impl().
该结构体的文档由以下文件生成:
- src/engine/devtools/LanguageServer.cpp