Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Highlights Class Reference

#include <qqmlsemantictokens_p.h>

+ Collaboration diagram for Highlights:

Public Member Functions

void addHighlight (const QQmlJS::SourceLocation &loc, int tokenType, int tokenModifier=0)
 
void addHighlight (const QMap< QQmlJS::Dom::FileLocationRegion, QQmlJS::SourceLocation > &regions, QQmlJS::Dom::FileLocationRegion region, int tokenModifier=0)
 
QList< int > collectTokens (const QQmlJS::Dom::DomItem &item, const std::optional< HighlightsRange > &range)
 
HighlightsContainerhighlights ()
 
const HighlightsContainerhighlights () const
 

Detailed Description

Definition at line 74 of file qqmlsemantictokens_p.h.

Member Function Documentation

◆ addHighlight() [1/2]

void Highlights::addHighlight ( const QMap< QQmlJS::Dom::FileLocationRegion, QQmlJS::SourceLocation > & regions,
QQmlJS::Dom::FileLocationRegion region,
int tokenModifier = 0 )

Definition at line 746 of file qqmlsemantictokens.cpp.

References addHighlight(), qCDebug, and tokenTypeFromRegion().

+ Here is the call graph for this function:

◆ addHighlight() [2/2]

void Highlights::addHighlight ( const QQmlJS::SourceLocation & loc,
int tokenType,
int tokenModifier = 0 )

Definition at line 735 of file qqmlsemantictokens.cpp.

References QMap< Key, T >::contains(), QMap< Key, T >::insert(), QQmlJS::SourceLocation::isValid(), QQmlJS::SourceLocation::offset, and qCDebug.

Referenced by addHighlight().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collectTokens()

QList< int > Highlights::collectTokens ( const QQmlJS::Dom::DomItem & item,
const std::optional< HighlightsRange > & range )

Definition at line 758 of file qqmlsemantictokens.cpp.

References QQmlJS::Dom::emptyChildrenVisitor(), HighlightingUtils::encodeSemanticTokens(), highlightingFilter(), and item.

Referenced by SemanticTokenDeltaHandler::process(), SemanticTokenRangeHandler::process(), and SemanticTokenFullHandler::process().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ highlights() [1/2]

HighlightsContainer & Highlights::highlights ( )
inline

Definition at line 83 of file qqmlsemantictokens_p.h.

Referenced by HighlightingUtils::encodeSemanticTokens().

+ Here is the caller graph for this function:

◆ highlights() [2/2]

const HighlightsContainer & Highlights::highlights ( ) const
inline

Definition at line 84 of file qqmlsemantictokens_p.h.


The documentation for this class was generated from the following files: