sun::lsp::DeclarationKey

sun::lsp::DeclarationKey

struct · Source (opens in a new tab)

struct sun::lsp::DeclarationKey

Identity of a declaration: where it is.

Specialization clones keep the template's spans, so a declaration reached through a clone and through the template compare equal. Parameters share their function's span and are told apart by name.

Public Functions

operator==

public · function · Source (opens in a new tab)

bool sun::lsp::DeclarationKey::operator==(const DeclarationKey &) const =default

Compares the stored values for equality.

Related: DeclarationKey

Public Fields

end

public · variable · Source (opens in a new tab)

int sun::lsp::DeclarationKey::end = -1

No documentation comment.

file

public · variable · Source (opens in a new tab)

std::string sun::lsp::DeclarationKey::file

No documentation comment.

offset

public · variable · Source (opens in a new tab)

int sun::lsp::DeclarationKey::offset = 0

No documentation comment.

parameter

public · variable · Source (opens in a new tab)

std::string sun::lsp::DeclarationKey::parameter

No documentation comment.