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
qqmlsemantictokens.cpp File Reference

(86d95ccfd8c72c618fb869a81cc6eb655d6e39a1)

#include <qqmlsemantictokens_p.h>
#include <QtQmlLS/private/qqmllsutils_p.h>
#include <QtQmlDom/private/qqmldomscriptelements_p.h>
#include <QtQmlDom/private/qqmldomfieldfilter_p.h>
#include <QtLanguageServer/private/qlanguageserverprotocol_p.h>
+ Include dependency graph for qqmlsemantictokens.cpp:

Go to the source code of this file.

Functions

static int tokenTypeFromRegion (QQmlJS::Dom::FileLocationRegion region)
 
static FieldFilter highlightingFilter ()
 

Function Documentation

◆ highlightingFilter()

static FieldFilter highlightingFilter ( )
static

Definition at line 75 of file qqmlsemantictokens.cpp.

References QString::fromUtf16().

Referenced by Highlights::collectTokens().

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

◆ tokenTypeFromRegion()

static int tokenTypeFromRegion ( QQmlJS::Dom::FileLocationRegion region)
static

Definition at line 20 of file qqmlsemantictokens.cpp.

References QQmlJS::Dom::AsTokenRegion, QQmlJS::Dom::BreakKeywordRegion, QQmlJS::Dom::CaseKeywordRegion, QQmlJS::Dom::CatchKeywordRegion, QQmlJS::Dom::ComponentKeywordRegion, QQmlJS::Dom::ContinueKeywordRegion, QQmlJS::Dom::DefaultKeywordRegion, QQmlJS::Dom::DoKeywordRegion, QQmlJS::Dom::EllipsisTokenRegion, QQmlJS::Dom::ElseKeywordRegion, QQmlJS::Dom::EnumKeywordRegion, QQmlJS::Dom::EnumValueRegion, QQmlJS::Dom::FinallyKeywordRegion, QQmlJS::Dom::ForKeywordRegion, QQmlJS::Dom::FunctionKeywordRegion, QQmlJS::Dom::IdentifierRegion, QQmlJS::Dom::IdNameRegion, QQmlJS::Dom::IdTokenRegion, QQmlJS::Dom::IfKeywordRegion, QQmlJS::Dom::ImportTokenRegion, QQmlJS::Dom::ImportUriRegion, QQmlJS::Dom::InOfTokenRegion, QQmlJS::Dom::OnTargetRegion, QQmlJS::Dom::OnTokenRegion, QQmlJS::Dom::OperatorTokenRegion, QQmlJS::Dom::PragmaKeywordRegion, QQmlJS::Dom::PragmaValuesRegion, QQmlJS::Dom::PropertyKeywordRegion, QQmlJS::Dom::QuestionMarkTokenRegion, QQmlJS::Dom::ReadonlyKeywordRegion, QQmlJS::Dom::RequiredKeywordRegion, QQmlJS::Dom::ReturnKeywordRegion, QQmlJS::Dom::SignalKeywordRegion, QQmlJS::Dom::SwitchKeywordRegion, QQmlJS::Dom::ThrowKeywordRegion, QQmlJS::Dom::TryKeywordRegion, QQmlJS::Dom::TypeIdentifierRegion, QQmlJS::Dom::VersionRegion, and QQmlJS::Dom::WhileKeywordRegion.

Referenced by Highlights::addHighlight().

+ Here is the caller graph for this function: