Home
last modified time | relevance | path

Searched refs:HighlightingToken (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DSemanticHighlighting.h70 struct HighlightingToken { struct
75 bool operator==(const HighlightingToken &L, const HighlightingToken &R); argument
76 bool operator<(const HighlightingToken &L, const HighlightingToken &R);
81 std::vector<HighlightingToken> Tokens;
89 std::vector<HighlightingToken> getSemanticHighlightings(ParsedAST &AST);
91 std::vector<SemanticToken> toSemanticTokens(llvm::ArrayRef<HighlightingToken>);
115 diffHighlightings(ArrayRef<HighlightingToken> New,
116 ArrayRef<HighlightingToken> Old);
DSemanticHighlighting.cpp163 llvm::Optional<HighlightingToken>
164 resolveConflict(ArrayRef<HighlightingToken> Tokens) { in resolveConflict()
185 void addToken(HighlightingToken T) { Tokens.push_back(T); } in addToken()
196 Tokens.push_back(HighlightingToken{Kind, std::move(Range)}); in addToken()
199 std::vector<HighlightingToken> collect(ParsedAST &AST) && { in collect()
209 std::vector<HighlightingToken> NonConflicting; in collect()
211 for (ArrayRef<HighlightingToken> TokRef = Tokens; !TokRef.empty();) { in collect()
212 ArrayRef<HighlightingToken> Conflicting = in collect()
213 TokRef.take_while([&](const HighlightingToken &T) { in collect()
228 std::vector<HighlightingToken> WithInactiveLines; in collect()
[all …]
DClangdServer.h76 std::vector<HighlightingToken> Highlightings) {} in onHighlightingsReady()
322 Callback<std::vector<HighlightingToken>>);
DClangdLSPServer.h83 std::vector<HighlightingToken> Highlightings) override;
210 llvm::StringMap<std::vector<HighlightingToken>> FileToHighlightings;
DClangdLSPServer.cpp1387 llvm::Expected<std::vector<HighlightingToken>> HT) mutable { in onSemanticTokens()
1411 llvm::Expected<std::vector<HighlightingToken>> HT) mutable { in onSemanticTokensDelta()
1571 std::vector<HighlightingToken> Highlightings) { in onHighlightingsReady()
1572 std::vector<HighlightingToken> Old; in onHighlightingsReady()
1573 std::vector<HighlightingToken> HighlightingsCopy = Highlightings; in onHighlightingsReady()
DClangdServer.cpp85 std::vector<HighlightingToken> Highlightings; in onMainAST()
765 PathRef File, Callback<std::vector<HighlightingToken>> CB) { in semanticHighlights()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSemanticHighlightingTests.cpp34 std::vector<HighlightingToken>
36 std::vector<HighlightingToken> Tokens(Ranges.size()); in makeHighlightingTokens()
45 std::vector<HighlightingToken> getExpectedTokens(Annotations &Test) { in getExpectedTokens()
66 std::vector<HighlightingToken> ExpectedTokens; in getExpectedTokens()
68 std::vector<HighlightingToken> Toks = makeHighlightingTokens( in getExpectedTokens()
82 llvm::ArrayRef<HighlightingToken> Tokens) { in annotate()
85 [](const HighlightingToken &L, const HighlightingToken &R) { in annotate()
135 std::vector<HighlightingToken> OldTokens = getExpectedTokens(OldTest); in checkDiffedHighlights()
136 std::vector<HighlightingToken> NewTokens = getExpectedTokens(NewTest); in checkDiffedHighlights()
138 llvm::DenseMap<int, std::vector<HighlightingToken>> ExpectedLines; in checkDiffedHighlights()
[all …]
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DAnnotateHighlightings.cpp44 std::vector<HighlightingToken> HighlightingTokens; in REGISTER_TWEAK()