File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -418,7 +418,8 @@ class HighlightingsBuilder {
418
418
public:
419
419
HighlightingsBuilder (const ParsedAST &AST, const HighlightingFilter &Filter)
420
420
: TB(AST.getTokens()), SourceMgr(AST.getSourceManager()),
421
- LangOpts (AST.getLangOpts()), Filter(Filter) {}
421
+ LangOpts (AST.getLangOpts()), Filter(Filter),
422
+ Resolver(AST.getHeuristicResolver()) {}
422
423
423
424
HighlightingToken &addToken (SourceLocation Loc, HighlightingKind Kind) {
424
425
auto Range = getRangeForSourceLocation (Loc);
@@ -589,7 +590,7 @@ class HighlightingsBuilder {
589
590
HighlightingFilter Filter;
590
591
std::vector<HighlightingToken> Tokens;
591
592
std::map<Range, llvm::SmallVector<HighlightingModifier, 1 >> ExtraModifiers;
592
- const HeuristicResolver *Resolver = nullptr ;
593
+ const HeuristicResolver *Resolver;
593
594
// returned from addToken(InvalidLoc)
594
595
HighlightingToken InvalidHighlightingToken;
595
596
};
You can’t perform that action at this time.
0 commit comments