Lines Matching refs:HighlightingToken
163 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()
279 std::vector<HighlightingToken> Tokens;
376 ArrayRef<HighlightingToken>
377 takeLine(ArrayRef<HighlightingToken> AllTokens, in takeLine()
378 ArrayRef<HighlightingToken>::iterator StartLineIt, int Line) { in takeLine()
379 return ArrayRef<HighlightingToken>(StartLineIt, AllTokens.end()) in takeLine()
380 .take_while([Line](const HighlightingToken &Token) { in takeLine()
386 std::vector<HighlightingToken> getSemanticHighlightings(ParsedAST &AST) { in getSemanticHighlightings()
455 diffHighlightings(ArrayRef<HighlightingToken> New, in diffHighlightings()
456 ArrayRef<HighlightingToken> Old) { in diffHighlightings()
476 ArrayRef<HighlightingToken> NewLine(New.begin(), in diffHighlightings()
478 ArrayRef<HighlightingToken> OldLine(Old.begin(), in diffHighlightings()
499 llvm::erase_if(AddedLine.Tokens, [&](const HighlightingToken &T) { in diffHighlightings()
512 bool operator==(const HighlightingToken &L, const HighlightingToken &R) { in operator ==()
515 bool operator<(const HighlightingToken &L, const HighlightingToken &R) { in operator <()
523 toSemanticTokens(llvm::ArrayRef<HighlightingToken> Tokens) { in toSemanticTokens()
526 const HighlightingToken *Last = nullptr; in toSemanticTokens()
527 for (const HighlightingToken &Tok : Tokens) { in toSemanticTokens()