Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlJSTypeResolverDependencies Struct Reference

#include <qqmljstyperesolver_p.h>

Collaboration diagram for QQmlJSTypeResolverDependencies:

Public Attributes

std::shared_ptr< QQmlJSImporterimporter
std::shared_ptr< QQmlJSResourceFileMappermapper
std::shared_ptr< QQmlJSLoggerlogger

Detailed Description

QQmlJSTypeResolver expects to be outlived by its importer and mapper. It crashes when its importer or mapper gets destructed. Therefore, you can use this struct to extend the lifetime of its dependencies in case you need to store the resolver as a class member. QQmlJSTypeResolver also expects to be outlived by the logger used by the importvisitor, while the importvisitor actually does not and will not outlive the QQmlJSTypeResolver.

Definition at line 368 of file qqmljstyperesolver_p.h.

Member Data Documentation

◆ importer

std::shared_ptr<QQmlJSImporter> QQmlJSTypeResolverDependencies::importer

Definition at line 370 of file qqmljstyperesolver_p.h.

◆ logger

std::shared_ptr<QQmlJSLogger> QQmlJSTypeResolverDependencies::logger

Definition at line 372 of file qqmljstyperesolver_p.h.

◆ mapper

std::shared_ptr<QQmlJSResourceFileMapper> QQmlJSTypeResolverDependencies::mapper

Definition at line 371 of file qqmljstyperesolver_p.h.


The documentation for this struct was generated from the following file: