Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlhighlightsupport.cpp File Reference

(49f14263cd587282f77b0fac761de74483e52485)

Include dependency graph for qqmlhighlightsupport.cpp:

Go to the source code of this file.

Functions

template<typename EnumType>
static QList< QByteArrayenumToByteArray ()
QList< QByteArraydefaultTokenModifiersList ()
QList< QByteArrayextendedTokenTypesList ()
static QList< int > generateHighlights (QmlLsp::RegisteredSemanticTokens &cached, const QmlLsp::OpenDocument &doc, const std::optional< HighlightsRange > &range, HighlightingMode mode)

Function Documentation

◆ defaultTokenModifiersList()

QList< QByteArray > defaultTokenModifiersList ( )

Definition at line 35 of file qqmlhighlightsupport.cpp.

◆ enumToByteArray()

template<typename EnumType>
QList< QByteArray > enumToByteArray ( )
static

Make a list of enum names to register the supported token types and modifiers. It is case-sensitive in the protocol thus we need to lower the first characters of the enum names.

Definition at line 22 of file qqmlhighlightsupport.cpp.

◆ extendedTokenTypesList()

QList< QByteArray > extendedTokenTypesList ( )

Definition at line 40 of file qqmlhighlightsupport.cpp.

◆ generateHighlights()

QList< int > generateHighlights ( QmlLsp::RegisteredSemanticTokens & cached,
const QmlLsp::OpenDocument & doc,
const std::optional< HighlightsRange > & range,
HighlightingMode mode )
static

Definition at line 45 of file qqmlhighlightsupport.cpp.