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::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::ConstPtr scope
 

Detailed Description

Definition at line 36 of file qqmlcodemodel_p.h.

Member Enumeration Documentation

◆ DumpOption

Enumerator
NoCode 
LatestCode 
ValidCode 
AllCode 

Definition at line 39 of file qqmlcodemodel_p.h.

Member Function Documentation

◆ dump()

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

Definition at line 871 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::ConstPtr QmlLsp::OpenDocumentSnapshot::scope

Definition at line 55 of file qqmlcodemodel_p.h.

◆ scopeDependenciesChanged

bool QmlLsp::OpenDocumentSnapshot::scopeDependenciesChanged = false

Definition at line 54 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ scopeDependenciesLoadTime

QDateTime QmlLsp::OpenDocumentSnapshot::scopeDependenciesLoadTime

Definition at line 53 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ scopeVersion

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

Definition at line 52 of file qqmlcodemodel_p.h.

Referenced by dump().

◆ searchPath

QStringList QmlLsp::OpenDocumentSnapshot::searchPath

Definition at line 46 of file qqmlcodemodel_p.h.

◆ url

QByteArray QmlLsp::OpenDocumentSnapshot::url

Definition at line 47 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: