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
QmlLsp Namespace Reference

Classes

struct  LastLintUpdate
 
class  OpenDocument
 
class  OpenDocumentSnapshot
 
class  QmlLintSuggestions
 
class  QQmlCodeModel
 
class  QQmlLanguageServer
 Sets up a QmlLanguageServer. More...
 
struct  RegisteredSemanticTokens
 
struct  ToIndex
 

Typedefs

using AdvanceFunc = qxp::function_ref<void(const QQmlJS::SourceLocation &, Position &)>
 

Functions

static bool isNotSeparator (char c)
 
static DiagnosticSeverity severityFromMsgType (QtMsgType t)
 
static void codeActionHandler (const QByteArray &, const CodeActionParams &params, LSPPartialResponse< std::variant< QList< std::variant< Command, CodeAction > >, std::nullptr_t >, QList< std::variant< Command, CodeAction > > > &&response)
 
static void advancePositionPastLocation_helper (const QString &fileContents, const QQmlJS::SourceLocation &location, Position &position)
 
static Diagnostic createMissingBuildDirDiagnostic ()
 
static Diagnostic messageToDiagnostic_helper (AdvanceFunc advancePositionPastLocation, std::optional< int > version, const Message &message)
 
static bool isSnapshotNew (std::optional< int > snapshotVersion, std::optional< int > processedVersion)
 

Typedef Documentation

◆ AdvanceFunc

Definition at line 152 of file qqmllintsuggestions.cpp.

Function Documentation

◆ advancePositionPastLocation_helper()

static void QmlLsp::advancePositionPastLocation_helper ( const QString & fileContents,
const QQmlJS::SourceLocation & location,
Position & position )
static

Definition at line 113 of file qqmllintsuggestions.cpp.

References i, and position().

+ Here is the call graph for this function:

◆ codeActionHandler()

static void QmlLsp::codeActionHandler ( const QByteArray & ,
const CodeActionParams & params,
LSPPartialResponse< std::variant< QList< std::variant< Command, CodeAction > >, std::nullptr_t >, QList< std::variant< Command, CodeAction > > > && response )
static

Definition at line 44 of file qqmllintsuggestions.cpp.

References QByteArray::append(), QByteArray::chop(), codeActionHandler(), edit, textEdit, and QString::toUtf8().

Referenced by codeActionHandler(), and QmlLsp::QmlLintSuggestions::registerHandlers().

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

◆ createMissingBuildDirDiagnostic()

static Diagnostic QmlLsp::createMissingBuildDirDiagnostic ( )
static

Definition at line 133 of file qqmllintsuggestions.cpp.

References position(), and QByteArray().

+ Here is the call graph for this function:

◆ isNotSeparator()

static bool QmlLsp::isNotSeparator ( char c)
static

Definition at line 713 of file qqmlcodemodel.cpp.

Referenced by QmlLsp::QQmlCodeModel::buildPathsForFileUrl(), and QmlLsp::QQmlCodeModel::setBuildPathsForRootUrl().

+ Here is the caller graph for this function:

◆ isSnapshotNew()

static bool QmlLsp::isSnapshotNew ( std::optional< int > snapshotVersion,
std::optional< int > processedVersion )
static

Definition at line 220 of file qqmllintsuggestions.cpp.

◆ messageToDiagnostic_helper()

static Diagnostic QmlLsp::messageToDiagnostic_helper ( AdvanceFunc advancePositionPastLocation,
std::optional< int > version,
const Message & message )
static

Definition at line 153 of file qqmllintsuggestions.cpp.

References QJsonArray::append(), QString::append(), cut(), QJsonObject::insert(), line, position(), Q_ASSERT, QByteArray(), severityFromMsgType(), QString::simplified(), and QString::toUtf8().

+ Here is the call graph for this function:

◆ severityFromMsgType()

static DiagnosticSeverity QmlLsp::severityFromMsgType ( QtMsgType t)
static

Definition at line 28 of file qqmllintsuggestions.cpp.

References QtCriticalMsg, QtDebugMsg, QtFatalMsg, QtInfoMsg, QtWarningMsg, and severityFromMsgType().

Referenced by messageToDiagnostic_helper(), and severityFromMsgType().

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