Go to the documentation of this file.
30 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H
31 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H
34 #include "llvm/Support/raw_ostream.h"
81 std::vector<HighlightingToken>
Tokens;
91 std::vector<SemanticToken>
toSemanticTokens(llvm::ArrayRef<HighlightingToken>);
93 std::vector<SemanticTokensEdit>
diffTokens(llvm::ArrayRef<SemanticToken> Before,
94 llvm::ArrayRef<SemanticToken> After);
101 std::vector<TheiaSemanticHighlightingInformation>
103 llvm::ArrayRef<LineHighlightings> Tokens);
114 std::vector<LineHighlightings>
116 ArrayRef<HighlightingToken> Old);
std::vector< HighlightingToken > Tokens
std::vector< TheiaSemanticHighlightingInformation > toTheiaSemanticHighlightingInformation(llvm::ArrayRef< LineHighlightings > Tokens)
Convert to LSP's semantic highlighting information.
std::vector< LineHighlightings > diffHighlightings(ArrayRef< HighlightingToken > New, ArrayRef< HighlightingToken > Old)
Return a line-by-line diff between two highlightings.
std::vector< SemanticTokensEdit > diffTokens(llvm::ArrayRef< SemanticToken > Old, llvm::ArrayRef< SemanticToken > New)
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)
std::vector< HighlightingToken > getSemanticHighlightings(ParsedAST &AST)
Contains all information about highlightings on a single line.
std::vector< SemanticToken > toSemanticTokens(llvm::ArrayRef< HighlightingToken > Tokens)
llvm::StringRef toSemanticTokenType(HighlightingKind Kind)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_string_ostream OS
bool operator<(const Ref &L, const Ref &R)
llvm::StringRef toTextMateScope(HighlightingKind Kind)
Converts a HighlightingKind to a corresponding TextMate scope (https://manual.macromates....
bool operator==(const Inclusion &LHS, const Inclusion &RHS)
Stores and provides access to parsed AST.