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

Method highlightDeclaration

kdevplatform/language/highlighting/codehighlighting.cpp:465–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465void CodeHighlightingInstance::highlightDeclaration(Declaration* declaration, const QColor& color)
466{
467 HighlightedRange h;
468 h.range = declaration->range();
469 h.attribute = m_highlighting->attributeForType(typeForDeclaration(declaration, nullptr),
470 CodeHighlightingContext::Declaration, color);
471 m_highlight.push_back(h);
472}
473
474void CodeHighlightingInstance::highlightUse(DUContext* context, int index, const QColor& color)
475{

Callers

nothing calls this directly

Calls 3

attributeForTypeMethod · 0.80
rangeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected