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>.
|
#include <qqmlsemantictokens_p.h>
Public Member Functions | |
void | addHighlight (const QQmlJS::SourceLocation &loc, int tokenType, int tokenModifier=0) |
void | addHighlight (const QMap< QQmlJS::Dom::FileLocationRegion, QQmlJS::SourceLocation > ®ions, QQmlJS::Dom::FileLocationRegion region, int tokenModifier=0) |
QList< int > | collectTokens (const QQmlJS::Dom::DomItem &item, const std::optional< HighlightsRange > &range) |
HighlightsContainer & | highlights () |
const HighlightsContainer & | highlights () const |
Definition at line 74 of file qqmlsemantictokens_p.h.
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().
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().
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().
|
inline |
Definition at line 83 of file qqmlsemantictokens_p.h.
Referenced by HighlightingUtils::encodeSemanticTokens().
|
inline |
Definition at line 84 of file qqmlsemantictokens_p.h.