MCPcopy Create free account
hub / github.com/KDE/kdevelop / hasHighlighting

Method hasHighlighting

kdevplatform/language/highlighting/codehighlighting.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool CodeHighlighting::hasHighlighting(IndexedString url) const
138{
139 DocumentChangeTracker* tracker = ICore::self()->languageController()->backgroundParser()->trackerForUrl(url);
140 if (tracker) {
141 QMutexLocker lock(&m_dataMutex);
142 const auto highlightingIt = m_highlights.constFind(tracker);
143 return highlightingIt != m_highlights.constEnd() && !(*highlightingIt)->m_highlightedRanges.isEmpty();
144 }
145 return false;
146}
147
148void CodeHighlighting::highlightDUChain(ReferencedTopDUContext context)
149{

Callers

nothing calls this directly

Calls 6

trackerForUrlMethod · 0.80
backgroundParserMethod · 0.80
languageControllerMethod · 0.80
constEndMethod · 0.80
constFindMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected