载入中...
搜索中...
未找到
eve::dev::lsp::WorkspaceIndex类 参考

Cross-file semantic index for EveScript source modules. 更多...

#include <LanguageIndex.h>

类

struct  Impl
 
struct  Target
 
struct  Unit
 

Public 成员函数

 WorkspaceIndex ()
 Workspace index.
 
 ~WorkspaceIndex ()
 Workspace index.
 
 WorkspaceIndex (const WorkspaceIndex &)=delete
 
WorkspaceIndex & operator= (const WorkspaceIndex &)=delete
 
void update (std::string canonicalUri, std::string clientUri, std::string source)
 Adds or replaces one canonical source unit.
 
void remove (std::string_view canonicalUri)
 Removes one source unit from the index.
 
std::optional< Location > definition (std::string_view canonicalUri, Position position) const
 Finds the declaration targeted by the identifier at a position.
 
std::vector< Location > references (std::string_view canonicalUri, Position position, bool includeDeclaration) const
 Finds project references for the identifier at a position.
 
std::optional< std::vector< TextEdit > > rename (std::string_view canonicalUri, Position position, std::string_view newName) const
 Computes a project-wide rename, or nullopt for an invalid/unresolved request.
 
std::vector< SemanticToken > semanticTokens (std::string_view canonicalUri) const
 Identifier classifications for LSP semantic highlighting.
 

详细描述

Cross-file semantic index for EveScript source modules.

在文件 LanguageIndex.h 第 68 行定义.

构造及析构函数说明

◆ WorkspaceIndex() [1/2]

eve::dev::lsp::WorkspaceIndex::WorkspaceIndex ( )

Workspace index.

在文件 LanguageIndex.cpp 第 201 行定义.

◆ ~WorkspaceIndex()

eve::dev::lsp::WorkspaceIndex::~WorkspaceIndex ( )
default

Workspace index.

◆ WorkspaceIndex() [2/2]

eve::dev::lsp::WorkspaceIndex::WorkspaceIndex ( const WorkspaceIndex &  )
delete

成员函数说明

◆ definition()

std::optional< Location > eve::dev::lsp::WorkspaceIndex::definition ( std::string_view  canonicalUri,
Position  position 
) const

Finds the declaration targeted by the identifier at a position.

在文件 LanguageIndex.cpp 第 459 行定义.

引用了 current, position, target , 以及 unit.

被这些函数引用 eve::dev::LanguageServer::Impl::hover().

◆ operator=()

WorkspaceIndex & eve::dev::lsp::WorkspaceIndex::operator= ( const WorkspaceIndex &  )
delete

◆ references()

std::vector< Location > eve::dev::lsp::WorkspaceIndex::references ( std::string_view  canonicalUri,
Position  position,
bool  includeDeclaration 
) const

Finds project references for the identifier at a position.

在文件 LanguageIndex.cpp 第 466 行定义.

引用了 current, position, target , 以及 unit.

◆ remove()

void eve::dev::lsp::WorkspaceIndex::remove ( std::string_view  canonicalUri)

Removes one source unit from the index.

在文件 LanguageIndex.cpp 第 290 行定义.

被这些函数引用 eve::dev::LanguageServer::Impl::close().

◆ rename()

std::optional< std::vector< TextEdit > > eve::dev::lsp::WorkspaceIndex::rename ( std::string_view  canonicalUri,
Position  position,
std::string_view  newName 
) const

Computes a project-wide rename, or nullopt for an invalid/unresolved request.

在文件 LanguageIndex.cpp 第 474 行定义.

引用了 current, position, target , 以及 unit.

◆ semanticTokens()

std::vector< SemanticToken > eve::dev::lsp::WorkspaceIndex::semanticTokens ( std::string_view  canonicalUri) const

Identifier classifications for LSP semantic highlighting.

在文件 LanguageIndex.cpp 第 396 行定义.

引用了 current, found, kind, member, name, eve::dev::lsp::SemanticToken::start, token, tokens , 以及 unit.

◆ update()

void eve::dev::lsp::WorkspaceIndex::update ( std::string  canonicalUri,
std::string  clientUri,
std::string  source 
)

该类的文档由以下文件生成: