| 527 | } |
| 528 | |
| 529 | void ParseJob::highlightDUChain() |
| 530 | { |
| 531 | Q_D(ParseJob); |
| 532 | |
| 533 | ENSURE_CHAIN_NOT_LOCKED |
| 534 | if (!d->languageSupport->codeHighlighting() || !duChain() || abortRequested()) { |
| 535 | // language doesn't support highlighting |
| 536 | return; |
| 537 | } |
| 538 | if (!d->hasReadContents && !d->tracker) { |
| 539 | d->tracker = ICore::self()->languageController()->backgroundParser()->trackerForUrl(document()); |
| 540 | } |
| 541 | if (d->tracker) { |
| 542 | d->languageSupport->codeHighlighting()->highlightDUChain(duChain()); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | ControlFlowGraph* ParseJob::controlFlowGraph() |
| 547 | { |
no test coverage detected