Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QmlLsp::OpenDocumentSnapshot Class Reference

#include <qqmlcodemodel_p.h>

+ Collaboration diagram for QmlLsp::OpenDocumentSnapshot:

Public Types

enum class  DumpOption { NoCode = 0 , LatestCode = 0x1 , ValidCode = 0x2 , AllCode = LatestCode | ValidCode }
 

Public Member Functions

QDebug dump (QDebug dbg, DumpOptions dump=DumpOption::NoCode)
 

Public Attributes

QStringList searchPath
 
QByteArray url
 
std::optional< int > docVersion
 
QQmlJS::Dom::DomItem doc
 
std::optional< int > validDocVersion
 
QQmlJS::Dom::DomItem validDoc
 
std::optional< int > scopeVersion
 
QDateTime scopeDependenciesLoadTime
 
bool scopeDependenciesChanged = false
 
QQmlJSScope::Ptr scope = {}
 

Detailed Description

Definition at line 34 of file qqmlcodemodel_p.h.

Member Enumeration Documentation

◆ DumpOption

Enumerator
NoCode 
LatestCode 
ValidCode 
AllCode 

Definition at line 37 of file qqmlcodemodel_p.h.

Member Function Documentation

◆ dump()

QDebug QmlLsp::OpenDocumentSnapshot::dump ( QDebug  dbg,
DumpOptions  dump = DumpOption::NoCode 
)

Definition at line 682 of file qqmlcodemodel.cpp.

References doc, docVersion, QQmlJS::Dom::DomItem::field(), QString::fromUtf8(), LatestCode, QString::number(), scopeDependenciesChanged, scopeDependenciesLoadTime, scopeVersion, QString::size(), QCborValue::toString(), url, ValidCode, validDoc, validDocVersion, and QQmlJS::Dom::DomItem::value().

Referenced by QmlLsp::QQmlCodeModel::newDocForOpenFile().

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

Member Data Documentation

◆ doc

◆ docVersion

◆ scope

QQmlJSScope::Ptr QmlLsp::OpenDocumentSnapshot::scope = {}

Definition at line 53 of file qqmlcodemodel_p.h.

◆ scopeDependenciesChanged

bool QmlLsp::OpenDocumentSnapshot::scopeDependenciesChanged = false

Definition at line 52 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ scopeDependenciesLoadTime

QDateTime QmlLsp::OpenDocumentSnapshot::scopeDependenciesLoadTime

Definition at line 51 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ scopeVersion

std::optional<int> QmlLsp::OpenDocumentSnapshot::scopeVersion

Definition at line 50 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ searchPath

QStringList QmlLsp::OpenDocumentSnapshot::searchPath

Definition at line 44 of file qqmlcodemodel_p.h.

◆ url

QByteArray QmlLsp::OpenDocumentSnapshot::url

Definition at line 45 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ validDoc

◆ validDocVersion

std::optional<int> QmlLsp::OpenDocumentSnapshot::validDocVersion

The documentation for this class was generated from the following files: