| 135 | } |
| 136 | |
| 137 | bool 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 | |
| 148 | void CodeHighlighting::highlightDUChain(ReferencedTopDUContext context) |
| 149 | { |
nothing calls this directly
no test coverage detected