|
| enum class | QmlHighlightKind {
QmlKeyword
, QmlType
, QmlImportId
, QmlNamespace
,
QmlLocalId
, QmlExternalId
, QmlProperty
, QmlScopeObjectProperty
,
QmlRootObjectProperty
, QmlExternalObjectProperty
, QmlMethod
, QmlMethodParameter
,
QmlSignal
, QmlSignalHandler
, QmlEnumName
, QmlEnumMember
,
QmlPragmaName
, QmlPragmaValue
, QmlTypeModifier
, JsImport
,
JsGlobalVar
, JsGlobalMethod
, JsScopeVar
, JsLabel
,
Number
, String
, Comment
, Operator
,
Field
, Unknown
} |
| enum class | QmlHighlightModifier : uint32_t {
None = 0
, QmlPropertyDefinition = 1 << 0
, QmlDefaultProperty = 1 << 1
, QmlRequiredProperty = 1 << 2
,
QmlReadonlyProperty = 1 << 3
, QmlFinalProperty = 1 << 4
, QmlVirtualProperty = 1 << 5
, QmlOverrideProperty = 1 << 6
} |
| enum class | HighlightingMode { Default
, QtCHighlighting
} |
| enum class | SemanticTokenProtocolTypes {
Namespace
, Type
, Enum
, Parameter
,
Variable
, Property
, EnumMember
, Method
,
Keyword
, Comment
, String
, Number
,
Regexp
, Operator
, Decorator
, QmlLocalId
,
QmlExternalId
, QmlRootObjectProperty
, QmlScopeObjectProperty
, QmlExternalObjectProperty
,
JsScopeVar
, JsImportVar
, JsGlobalVar
, QmlStateName
,
Field
, Unknown
} |
|
| static int | mapToProtocolForQtCreator (QmlHighlightKind highlightKind) |
| static int | mapToProtocolDefault (QmlHighlightKind highlightKind) |
| static std::optional< QmlHighlightKind > | resolveJsGlobalObjectKind (const DomItem &item, const QString &name) |
| | Further resolves the type of a JavaScriptIdentifier A global object can be in the object form or in the function form. For example, Date can be used as a constructor function (like new Date()) or as a object (like Date.now()).
|
| static int | fromQmlModifierKindToLspTokenType (QmlHighlightModifiers highlightModifier) |
| static FieldFilter | highlightingFilter () |
| static std::pair< quint32, quint32 > | newlineCountAndLastLineLength (const QString &text) |
| static void | updateCursorPositionByDiff (const QString &text, QQmlJS::SourceLocation &cursor) |
| static bool | tokenBeforeOffset (const QQmlJS::SourceLocation &t, quint32 offset) |
| static bool | tokenAfterOffset (const QQmlJS::SourceLocation &t, quint32 offset) |
| static bool | insertionInsideToken (const QQmlJS::SourceLocation &token, const QQmlJS::SourceLocation &cursor) |
| static bool | insertionTouchesTokenLeft (const QQmlJS::SourceLocation &token, const QQmlJS::SourceLocation &cursor) |
| static void | shiftTokenAfterInsert (QQmlJS::SourceLocation &t, const QQmlJS::SourceLocation &cursor, int newlines, int lastLen, int diffLen) |
| static void | expandTokenForMiddleInsert (QQmlJS::SourceLocation &t, const QQmlLSUtils::Diff &diff, const QQmlJS::SourceLocation &cursor) |
| static void | expandTokenForLeftOverlap (QQmlJS::SourceLocation &t, const QQmlLSUtils::Diff &diff, const QQmlJS::SourceLocation &cursor, int newlines, int lastLen) |
| static void | updateHighlightsOnInsert (HighlightsContainer &highlights, QQmlJS::SourceLocation &cursor, const QQmlLSUtils::Diff &diff) |
| static bool | spansAcrossDeletion (const QQmlJS::SourceLocation &t, quint32 delStart, quint32 delEnd) |
| static bool | leftFragmentRemains (const QQmlJS::SourceLocation &t, quint32 delStart, quint32 delEnd) |
| static bool | rightFragmentRemains (const QQmlJS::SourceLocation &t, quint32 delStart, quint32 delEnd) |
| static void | shiftTokenAfterDelete (QQmlJS::SourceLocation &t, int newlines, int lastLen, const QQmlJS::SourceLocation &cursor, int diffLen) |
| static void | applyDeletionOverlap (QQmlJS::SourceLocation &t, quint32 delStart, quint32 delEnd, int newlines, quint32 delStartLine, quint32 delStartColumn) |
| static void | updateHighlightsOnDelete (HighlightsContainer &highlights, QQmlJS::SourceLocation &cursor, const QQmlLSUtils::Diff &diff) |