22 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_DEX_TOKEN_H 23 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_DEX_TOKEN_H 26 #include "llvm/ADT/DenseMap.h" 27 #include "llvm/Support/raw_ostream.h" 74 : Data(Data), TokenKind(TokenKind) {}
77 return TokenKind == Other.TokenKind && Data == Other.Data;
81 switch (T.TokenKind) {
107 return llvm::hash_combine(static_cast<int>(Token.TokenKind), Token.Data);
118 template <>
struct DenseMapInfo<
clang::clangd::dex::Token> {
139 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_DEX_TOKEN_H Some operations such as code completion produce a set of candidates.
static unsigned getHashValue(const clang::clangd::dex::Token &Tag)
Path Proximity URI to symbol declaration.
Represents trigram used for fuzzy search of unqualified symbol names.
friend llvm::hash_code hash_value(const Token &Token)
friend llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const Token &T)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
bool operator==(const Token &Other) const
static bool isEqual(const clang::clangd::dex::Token &LHS, const clang::clangd::dex::Token &RHS)
static clang::clangd::dex::Token getEmptyKey()
Kind
Kind specifies Token type which defines semantics for the internal representation.
Internal Token type for invalid/special tokens, e.g.
A Token represents an attribute of a symbol, such as a particular trigram present in the name (used f...
Type of symbol (see Symbol::Type).
Token(Kind TokenKind, llvm::StringRef Data)
static clang::clangd::dex::Token getTombstoneKey()